Skip to content

Commit

Permalink
Don't link on emscripten builds
Browse files Browse the repository at this point in the history
  • Loading branch information
ckrowland committed Dec 14, 2024
1 parent 1243784 commit 5ffed23
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ pub fn build(b: *std.Build) void {
const zglfw = b.dependency("zglfw", .{});
exe.root_module.addImport("zglfw", zglfw.module("root"));
exe.linkLibrary(zglfw.artifact("glfw"));
if (target.result.os.tag != .emscrpten) {
exe.linkLibrary(zglfw.artifact("glfw"));
}
}
```

Expand Down

0 comments on commit 5ffed23

Please sign in to comment.