Skip to content

Commit

Permalink
Add Emscripten support (#8)
Browse files Browse the repository at this point in the history
Initial effort to support Emscripten
  • Loading branch information
ckrowland authored Jan 2, 2025
1 parent dbb3e60 commit 87ed3f8
Show file tree
Hide file tree
Showing 3 changed files with 278 additions and 88 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,10 @@ pub fn build(b: *std.Build) void {
const zgpu = b.dependency("zgpu", .{});
exe.root_module.addImport("zgpu", zgpu.module("root"));
exe.linkLibrary(zgpu.artifact("zdawn"));
if (target.result.os.tag != .emscripten) {
exe.linkLibrary(zgpu.artifact("zdawn"));
}
}
```

Expand Down
Loading

0 comments on commit 87ed3f8

Please sign in to comment.