Skip to content

Commit 87ed3f8

Browse files
authored
Add Emscripten support (#8)
Initial effort to support Emscripten
1 parent dbb3e60 commit 87ed3f8

File tree

3 files changed

+278
-88
lines changed

3 files changed

+278
-88
lines changed

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ pub fn build(b: *std.Build) void {
2424
2525
const zgpu = b.dependency("zgpu", .{});
2626
exe.root_module.addImport("zgpu", zgpu.module("root"));
27-
exe.linkLibrary(zgpu.artifact("zdawn"));
27+
28+
if (target.result.os.tag != .emscripten) {
29+
exe.linkLibrary(zgpu.artifact("zdawn"));
30+
}
2831
}
2932
```
3033

0 commit comments

Comments
 (0)