| ... | ... | @@ -77,10 +77,12 @@ pub fn build(b: *Builder) !void { |
| 77 | 77 | |
| 78 | 78 | const tracy = b.option([]const u8, "tracy", "Enable Tracy integration. Supply path to Tracy source"); |
| 79 | 79 | const link_libc = b.option(bool, "force-link-libc", "Force self-hosted compiler to link libc") orelse enable_llvm; |
| 80 | const strip = b.option(bool, "strip", "Omit debug information") orelse false; |
| 80 | 81 | |
| 81 | 82 | const main_file = if (is_stage1) "src/stage1.zig" else "src/main.zig"; |
| 82 | 83 | |
| 83 | 84 | var exe = b.addExecutable("zig", main_file); |
| 85 | exe.strip = strip; |
| 84 | 86 | exe.install(); |
| 85 | 87 | exe.setBuildMode(mode); |
| 86 | 88 | exe.setTarget(target); |