| ... | @@ -77,10 +77,12 @@ pub fn build(b: *Builder) !void { | ... | @@ -77,10 +77,12 @@ 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 enable_llvm; | 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 | const main_file = if (is_stage1) "src/stage1.zig" else "src/main.zig"; | 82 | const main_file = if (is_stage1) "src/stage1.zig" else "src/main.zig"; |
| 82 | | 83 | |
| 83 | var exe = b.addExecutable("zig", main_file); | 84 | var exe = b.addExecutable("zig", main_file); |
| | 85 | exe.strip = strip; |
| 84 | exe.install(); | 86 | exe.install(); |
| 85 | exe.setBuildMode(mode); | 87 | exe.setBuildMode(mode); |
| 86 | exe.setTarget(target); | 88 | exe.setTarget(target); |