diff options
| author | Veikka Tuominen <git@vexu.eu> | 2022-04-23 09:38:38 +0300 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-05-16 17:42:51 -0700 |
| commit | 53a5aee3b3684a03c91236702c9304dce21279e2 (patch) | |
| tree | b14c0c4d2f017d9423f5f050aa42ea66eaa4ae7a /src/Compilation.zig | |
| parent | 66c3988e5eebd423844d5dd20c762d6fefe20adf (diff) | |
| download | zig-53a5aee3b3684a03c91236702c9304dce21279e2.tar.gz zig-53a5aee3b3684a03c91236702c9304dce21279e2.zip | |
stage2: enable error return tracing on llvm backend
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, }; |
