| ... | @@ -111,6 +111,7 @@ pub fn build(b: *Builder) !void { | ... | @@ -111,6 +111,7 @@ pub fn build(b: *Builder) !void { |
| 111 | | 111 | |
| 112 | const tracy = b.option([]const u8, "tracy", "Enable Tracy integration. Supply path to Tracy source"); | 112 | const tracy = b.option([]const u8, "tracy", "Enable Tracy integration. Supply path to Tracy source"); |
| 113 | const tracy_callstack = b.option(bool, "tracy-callstack", "Include callstack information with Tracy data. Does nothing if -Dtracy is not provided") orelse false; | 113 | const tracy_callstack = b.option(bool, "tracy-callstack", "Include callstack information with Tracy data. Does nothing if -Dtracy is not provided") orelse false; |
| | 114 | const tracy_allocation = b.option(bool, "tracy-allocation", "Include allocation information with Tracy data. Does nothing if -Dtracy is not provided") orelse false; |
| 114 | const link_libc = b.option(bool, "force-link-libc", "Force self-hosted compiler to link libc") orelse enable_llvm; | 115 | const link_libc = b.option(bool, "force-link-libc", "Force self-hosted compiler to link libc") orelse enable_llvm; |
| 115 | const strip = b.option(bool, "strip", "Omit debug information") orelse false; | 116 | const strip = b.option(bool, "strip", "Omit debug information") orelse false; |
| 116 | | 117 | |
| ... | @@ -266,6 +267,7 @@ pub fn build(b: *Builder) !void { | ... | @@ -266,6 +267,7 @@ pub fn build(b: *Builder) !void { |
| 266 | exe_options.addOption(bool, "enable_link_snapshots", enable_link_snapshots); | 267 | exe_options.addOption(bool, "enable_link_snapshots", enable_link_snapshots); |
| 267 | exe_options.addOption(bool, "enable_tracy", tracy != null); | 268 | exe_options.addOption(bool, "enable_tracy", tracy != null); |
| 268 | exe_options.addOption(bool, "enable_tracy_callstack", tracy_callstack); | 269 | exe_options.addOption(bool, "enable_tracy_callstack", tracy_callstack); |
| | 270 | exe_options.addOption(bool, "enable_tracy_allocation", tracy_allocation); |
| 269 | exe_options.addOption(bool, "is_stage1", is_stage1); | 271 | exe_options.addOption(bool, "is_stage1", is_stage1); |
| 270 | exe_options.addOption(bool, "omit_stage2", omit_stage2); | 272 | exe_options.addOption(bool, "omit_stage2", omit_stage2); |
| 271 | if (tracy) |tracy_path| { | 273 | if (tracy) |tracy_path| { |