Skip to content

Commit

Permalink
core: remove WASM support
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Gutekanst <[email protected]>
  • Loading branch information
slimsag committed Aug 25, 2024
1 parent 642cc9b commit a5a3d31
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 477 deletions.
4 changes: 2 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions src/Core.zig
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const Frequency = @import("core/Frequency.zig");
pub const Platform = switch (build_options.core_platform) {
.x11 => @import("core/X11.zig"),
.wayland => @import("core/Wayland.zig"),
.web => @panic("TODO: revive wasm backend"),
.wasm => @panic("TODO: support mach.Core WASM platform"),
.win32 => @import("core/win32.zig"),
.darwin => @import("core/Darwin.zig"),
.null => @import("core/Null.zig"),
Expand All @@ -27,7 +27,7 @@ pub const supports_non_blocking = switch (build_options.core_platform) {
.win32 => true,
.x11 => true,
.wayland => true,
.web => false,
.wasm => false,
.darwin => false,
.null => false,
};
Expand Down
Loading

0 comments on commit a5a3d31

Please sign in to comment.