authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-08-18 15:08:43-07:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2020-08-18 15:08:43-07:00
log5547abd2d1fab482ab0d26a92058c94c298ce403
treef1310dc7d2b659baf78128d3771e87ffb8a54715
parentd139e44cfae68ace32458ff4d804dc6331b1ec8e

build: -Dforce-link-libc now also applies to test-stage2


1 files changed, 4 insertions(+), 1 deletions(-)

build.zig+4-1
...@@ -77,7 +77,10 @@ pub fn build(b: *Builder) !void {...@@ -77,7 +77,10 @@ pub fn build(b: *Builder) !void {
77 }77 }
78 const tracy = b.option([]const u8, "tracy", "Enable Tracy integration. Supply path to Tracy source");78 const tracy = b.option([]const u8, "tracy", "Enable Tracy integration. Supply path to Tracy source");
79 const link_libc = b.option(bool, "force-link-libc", "Force self-hosted compiler to link libc") orelse false;79 const link_libc = b.option(bool, "force-link-libc", "Force self-hosted compiler to link libc") orelse false;
80 if (link_libc) exe.linkLibC();80 if (link_libc) {
81 exe.linkLibC();
82 test_stage2.linkLibC();
83 }
8184
82 const log_scopes = b.option([]const []const u8, "log", "Which log scopes to enable") orelse &[0][]const u8{};85 const log_scopes = b.option([]const []const u8, "log", "Which log scopes to enable") orelse &[0][]const u8{};
8386