Skip to content

Commit

Permalink
remove unmaintained WASM support
Browse files Browse the repository at this point in the history
Same reasoning as outlined in #1254

> nobody is interested in actively maintaining or contributing to that today.

Signed-off-by: Stephen Gutekanst <[email protected]>
  • Loading branch information
slimsag committed Aug 25, 2024
1 parent 984d4de commit 51e996d
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 979 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/m1_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,6 @@ jobs:
run: zig build test
- name: build
run: zig build
- name: build (WASM)
run: zig build -Dtarget=wasm32-freestanding-none
# TODO: get WASM builds working
# - name: build (WASM)
# run: zig build -Dtarget=wasm32-freestanding-none
2 changes: 0 additions & 2 deletions build.zig
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,6 @@ fn buildExamples(
core: bool = false,
name: []const u8,
deps: []const Dependency = &.{},
wasm: bool = false,
has_assets: bool = false,
}{
// Mach core examples
Expand All @@ -388,7 +387,6 @@ fn buildExamples(
.{ .name = "sprite", .deps = &.{ .zigimg, .assets } },
.{ .name = "text", .deps = &.{.assets} },
}) |example| {
if (target.result.cpu.arch == .wasm32 and !example.wasm) continue;
const exe = b.addExecutable(.{
.name = if (example.core) b.fmt("core-{s}", .{example.name}) else example.name,
.root_source_file = if (example.core)
Expand Down
3 changes: 1 addition & 2 deletions src/core/Timer.zig
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
const std = @import("std");
const builtin = @import("builtin");
const WasmTimer = @import("wasm/Timer.zig");
const PlatformTimer = if (builtin.cpu.arch == .wasm32) WasmTimer else NativeTimer;
const PlatformTimer = if (builtin.cpu.arch == .wasm32) @panic("TODO: support WASM") else NativeTimer;

const Timer = @This();

Expand Down
25 changes: 0 additions & 25 deletions src/core/wasm/Timer.zig

This file was deleted.

42 changes: 0 additions & 42 deletions src/core/wasm/entrypoint.zig

This file was deleted.

42 changes: 0 additions & 42 deletions src/core/wasm/js.zig

This file was deleted.

Loading

0 comments on commit 51e996d

Please sign in to comment.