| ... | ... | @@ -124,6 +124,7 @@ pub fn build(b: *Builder) !void { |
| 124 | 124 | const tracy_allocation = b.option(bool, "tracy-allocation", "Include allocation information with Tracy data. Does nothing if -Dtracy is not provided") orelse false; |
| 125 | 125 | const force_gpa = b.option(bool, "force-gpa", "Force the compiler to use GeneralPurposeAllocator") orelse false; |
| 126 | 126 | const link_libc = b.option(bool, "force-link-libc", "Force self-hosted compiler to link libc") orelse enable_llvm; |
| 127 | const sanitize_thread = b.option(bool, "sanitize-thread", "Enable thread-sanitization") orelse false; |
| 127 | 128 | const strip = b.option(bool, "strip", "Omit debug information") orelse false; |
| 128 | 129 | const use_zig0 = b.option(bool, "zig0", "Bootstrap using zig0") orelse false; |
| 129 | 130 | const value_tracing = b.option(bool, "value-tracing", "Enable extra state tracking to help troubleshoot bugs in the compiler (using the std.debug.Trace API)") orelse false; |
| ... | ... | @@ -143,6 +144,7 @@ pub fn build(b: *Builder) !void { |
| 143 | 144 | const exe = b.addExecutable("zig", main_file); |
| 144 | 145 | exe.stack_size = stack_size; |
| 145 | 146 | exe.strip = strip; |
| 147 | exe.sanitize_thread = sanitize_thread; |
| 146 | 148 | exe.build_id = b.option(bool, "build-id", "Include a build id note") orelse false; |
| 147 | 149 | exe.install(); |
| 148 | 150 | exe.setBuildMode(mode); |