| ... | ... | @@ -168,6 +168,7 @@ pub fn build(b: *std.Build) !void { |
| 168 | 168 | const tracy = b.option([]const u8, "tracy", "Enable Tracy integration. Supply path to Tracy source"); |
| 169 | 169 | const tracy_callstack = b.option(bool, "tracy-callstack", "Include callstack information with Tracy data. Does nothing if -Dtracy is not provided") orelse (tracy != null); |
| 170 | 170 | const tracy_allocation = b.option(bool, "tracy-allocation", "Include allocation information with Tracy data. Does nothing if -Dtracy is not provided") orelse (tracy != null); |
| 171 | const tracy_callstack_depth: u32 = b.option(u32, "tracy-callstack-depth", "Declare callstack depth for Tracy data. Does nothing if -Dtracy_callstack is not provided") orelse 10; |
| 171 | 172 | const force_gpa = b.option(bool, "force-gpa", "Force the compiler to use GeneralPurposeAllocator") orelse false; |
| 172 | 173 | const link_libc = b.option(bool, "force-link-libc", "Force self-hosted compiler to link libc") orelse (enable_llvm or only_c); |
| 173 | 174 | const sanitize_thread = b.option(bool, "sanitize-thread", "Enable thread-sanitization") orelse false; |
| ... | ... | @@ -350,6 +351,7 @@ pub fn build(b: *std.Build) !void { |
| 350 | 351 | exe_options.addOption(bool, "enable_tracy", tracy != null); |
| 351 | 352 | exe_options.addOption(bool, "enable_tracy_callstack", tracy_callstack); |
| 352 | 353 | exe_options.addOption(bool, "enable_tracy_allocation", tracy_allocation); |
| 354 | exe_options.addOption(u32, "tracy_callstack_depth", tracy_callstack_depth); |
| 353 | 355 | exe_options.addOption(bool, "value_tracing", value_tracing); |
| 354 | 356 | if (tracy) |tracy_path| { |
| 355 | 357 | const client_cpp = b.pathJoin( |
| ... | ... | @@ -613,6 +615,7 @@ fn addWasiUpdateStep(b: *std.Build, version: [:0]const u8) !void { |
| 613 | 615 | exe_options.addOption(bool, "enable_tracy", false); |
| 614 | 616 | exe_options.addOption(bool, "enable_tracy_callstack", false); |
| 615 | 617 | exe_options.addOption(bool, "enable_tracy_allocation", false); |
| 618 | exe_options.addOption(u32, "tracy_callstack_depth", 0); |
| 616 | 619 | exe_options.addOption(bool, "value_tracing", false); |
| 617 | 620 | exe_options.addOption(DevEnv, "dev", .bootstrap); |
| 618 | 621 | |