Skip to content

Commit 1c93b0a

Browse files
committed
Don't link Emscripten builds
1 parent 043218a commit 1c93b0a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
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)