From 2bf532fc23ec014201bb1e69cb3b44e37e23f14c Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 9 Jun 2022 15:33:04 -0700 Subject: 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. --- src/Module.zig | 2 +- src/config.zig.in | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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@; -- cgit v1.2.3