diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-06-09 15:33:04 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-06-09 20:00:59 -0700 |
| commit | 2bf532fc23ec014201bb1e69cb3b44e37e23f14c (patch) | |
| tree | d87c47ac302f67d82d4d9692cf8181925152493f /src | |
| parent | bc36da0cb80eebffbbd86a430b435492e00f8378 (diff) | |
| download | zig-2bf532fc23ec014201bb1e69cb3b44e37e23f14c.tar.gz zig-2bf532fc23ec014201bb1e69cb3b44e37e23f14c.zip | |
stage2: use std.debug.Trace only when explicitly enabled
Because it bumps up the stack space requirements, which is making a test
case fail on aarch64 drone CI.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Module.zig | 2 | ||||
| -rw-r--r-- | src/config.zig.in | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/src/Module.zig b/src/Module.zig index 602b91a5ba..f03ba77a39 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -2531,7 +2531,7 @@ const TracedOffset = struct { x: i32, trace: std.debug.Trace = .{}, - const want_tracing = std.debug.Trace.enabled; + const want_tracing = build_options.value_tracing; }; /// Resolving a source location into a byte offset may require doing work diff --git a/src/config.zig.in b/src/config.zig.in index f193fddb20..104c3ed8eb 100644 --- a/src/config.zig.in +++ b/src/config.zig.in @@ -8,6 +8,7 @@ pub const semver = @import("std").SemanticVersion.parse(version) catch unreachab pub const enable_logging: bool = @ZIG_ENABLE_LOGGING_BOOL@; pub const enable_link_snapshots: bool = false; pub const enable_tracy = false; +pub const value_tracing = false; pub const is_stage1 = true; pub const skip_non_native = false; pub const omit_stage2: bool = @ZIG_OMIT_STAGE2_BOOL@; |
