aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-04-16 19:13:46 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-04-16 19:13:46 -0400
commitda8403bcdd6fb6928a26e5cb3813d9dc67db2eed (patch)
tree8e3e4e71dc24d17b4028069381b6aee0a43df347
parent89763c9a0d9a838439bcc6cd996c0ff2d3d0daca (diff)
downloadzig-da8403bcdd6fb6928a26e5cb3813d9dc67db2eed.tar.gz
zig-da8403bcdd6fb6928a26e5cb3813d9dc67db2eed.zip
build.zig: libuserland expects to against libc
-rw-r--r--build.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/build.zig b/build.zig
index a53743ca3c..733f2e68d2 100644
--- a/build.zig
+++ b/build.zig
@@ -389,6 +389,7 @@ fn addLibUserlandStep(b: *Builder) void {
else
b.addStaticLibrary("userland", "src-self-hosted/stage1.zig");
artifact.disable_gen_h = true;
+ artifact.linkSystemLibrary("c");
const libuserland_step = b.step("libuserland", "Build the userland compiler library for use in stage1");
libuserland_step.dependOn(&artifact.step);