mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 15:42:49 +00:00
build: -Dforce-link-libc now also applies to test-stage2
This commit is contained in:
parent
d139e44cfa
commit
5547abd2d1
@ -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{};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user