core: remove WASM support

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2024-08-24 22:22:49 -07:00 committed by Stephen Gutekanst
parent 642cc9b7f7
commit a5a3d31411
3 changed files with 4 additions and 477 deletions

View file

@ -286,13 +286,13 @@ pub fn build(b: *std.Build) !void {
pub const Platform = enum {
x11,
wayland,
web,
wasm,
win32,
darwin,
null,
pub fn fromTarget(target: std.Target) Platform {
if (target.cpu.arch == .wasm32) return .web;
if (target.cpu.arch == .wasm32) return .wasm;
if (target.os.tag.isDarwin()) return .darwin;
if (target.os.tag == .windows) return .win32;
return .x11;