diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-05-17 03:27:03 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-17 03:27:03 -0400 |
| commit | df74c45fa74f1247f434064d25b54998fe144906 (patch) | |
| tree | 490fab3dbc21d4825a304d62123d5573acba0e25 /src/Compilation.zig | |
| parent | 3fde14035b013646f42519189dbaa4534564d78b (diff) | |
| parent | 0a7f3be42e96361ab8a9a567a11782fb81ea17da (diff) | |
| download | zig-df74c45fa74f1247f434064d25b54998fe144906.tar.gz zig-df74c45fa74f1247f434064d25b54998fe144906.zip | |
Merge pull request #11501 from Vexu/stage2-err-return-trace
stage2: error return traces
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 407c753193..687b0a6dc6 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -1457,7 +1457,8 @@ pub fn create(gpa: Allocator, options: InitOptions) !*Compilation { errdefer if (module) |zm| zm.deinit(); const error_return_tracing = !strip and switch (options.optimize_mode) { - .Debug, .ReleaseSafe => true, + .Debug, .ReleaseSafe => (!options.target.isWasm() or options.target.os.tag == .emscripten) and + !options.target.cpu.arch.isBpf(), .ReleaseFast, .ReleaseSmall => false, }; |
