diff options
| author | Lee Cannon <leecannon@leecannon.xyz> | 2021-10-31 14:12:36 +0000 |
|---|---|---|
| committer | Lee Cannon <leecannon@leecannon.xyz> | 2021-10-31 14:12:36 +0000 |
| commit | 10c9fa0e080763faa1d952f635deb8e4cc1a23e2 (patch) | |
| tree | 37cf97be9f369a06ca10bfe60da4bc866f97ecf5 /build.zig | |
| parent | 969bcb6a59eadb2ef46a9784286728a25d275c24 (diff) | |
| download | zig-10c9fa0e080763faa1d952f635deb8e4cc1a23e2.tar.gz zig-10c9fa0e080763faa1d952f635deb8e4cc1a23e2.zip | |
make tracy.zig more feature complete
Diffstat (limited to 'build.zig')
| -rw-r--r-- | build.zig | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -110,6 +110,7 @@ pub fn build(b: *Builder) !void { return; const tracy = b.option([]const u8, "tracy", "Enable Tracy integration. Supply path to Tracy source"); + const tracy_callstack = b.option(bool, "tracy-callstack", "Include callstack information with Tracy data. Does nothing if -Dtracy is not provided") orelse false; const link_libc = b.option(bool, "force-link-libc", "Force self-hosted compiler to link libc") orelse enable_llvm; const strip = b.option(bool, "strip", "Omit debug information") orelse false; @@ -264,6 +265,7 @@ pub fn build(b: *Builder) !void { exe_options.addOption(bool, "enable_logging", enable_logging); exe_options.addOption(bool, "enable_link_snapshots", enable_link_snapshots); exe_options.addOption(bool, "enable_tracy", tracy != null); + exe_options.addOption(bool, "enable_tracy_callstack", tracy_callstack); exe_options.addOption(bool, "is_stage1", is_stage1); exe_options.addOption(bool, "omit_stage2", omit_stage2); if (tracy) |tracy_path| { |
