aboutsummaryrefslogtreecommitdiff
path: root/build.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2020-08-18 15:08:43 -0700
committerAndrew Kelley <andrew@ziglang.org>2020-08-18 15:08:43 -0700
commit5547abd2d1fab482ab0d26a92058c94c298ce403 (patch)
treef1310dc7d2b659baf78128d3771e87ffb8a54715 /build.zig
parentd139e44cfae68ace32458ff4d804dc6331b1ec8e (diff)
downloadzig-5547abd2d1fab482ab0d26a92058c94c298ce403.tar.gz
zig-5547abd2d1fab482ab0d26a92058c94c298ce403.zip
build: -Dforce-link-libc now also applies to test-stage2
Diffstat (limited to 'build.zig')
-rw-r--r--build.zig5
1 files changed, 4 insertions, 1 deletions
diff --git a/build.zig b/build.zig
index 95761a2fd3..2536b24bc0 100644
--- a/build.zig
+++ b/build.zig
@@ -77,7 +77,10 @@ pub fn build(b: *Builder) !void {
}
const tracy = b.option([]const u8, "tracy", "Enable Tracy integration. Supply path to Tracy source");
const link_libc = b.option(bool, "force-link-libc", "Force self-hosted compiler to link libc") orelse false;
- if (link_libc) exe.linkLibC();
+ if (link_libc) {
+ exe.linkLibC();
+ test_stage2.linkLibC();
+ }
const log_scopes = b.option([]const []const u8, "log", "Which log scopes to enable") orelse &[0][]const u8{};