build.zig: libuserland expects to against libc

This commit is contained in:
Andrew Kelley 2019-04-16 19:13:46 -04:00
parent 89763c9a0d
commit da8403bcdd
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9

View File

@ -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);