| ... | @@ -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 | } |
| 81 | | 84 | |
| 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{}; |
| 83 | | 86 | |