Skip to content

Commit 664305d

Browse files
authored
Simplify libc linking logic in build.zig
stbi needs libc. I don't know why we were doing something special for emscripten, the user can add include paths if they need. Closes #9
1 parent 2c4b310 commit 664305d

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

build.zig

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,7 @@ pub fn build(b: *std.Build) void {
2929
},
3030
});
3131
}
32-
33-
if (target.result.os.tag == .emscripten) {
34-
zstbi.addIncludePath(.{
35-
.cwd_relative = b.pathJoin(&.{ b.sysroot.?, "/include" }),
36-
});
37-
} else {
38-
zstbi.link_libc = true;
39-
}
32+
zstbi.link_libc = true;
4033

4134
const test_step = b.step("test", "Run zstbi tests");
4235

0 commit comments

Comments
 (0)