aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/build.zig b/build.zig
index 03c07d7..49ef164 100644
--- a/build.zig
+++ b/build.zig
@@ -8,8 +8,8 @@ pub fn build(b: *std.Build) void {
.root_source_file = b.path("src/root.zig"),
.target = target,
.optimize = optimize,
- .link_libc = true,
});
+ if (!target.result.isWasiLibC()) mod.link_libc = true;
const lib = b.addLibrary(.{
.name = "typdown",
.linkage = .dynamic,
@@ -22,9 +22,9 @@ pub fn build(b: *std.Build) void {
const example = b.addExecutable(.{
.name = "example",
.root_module = b.createModule(.{
- .link_libc = true,
.target = target,
.optimize = optimize,
+ .link_libc = true,
}),
});
example.root_module.addCSourceFile(.{