diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-07-27 11:07:10 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-07-27 11:07:10 -0700 |
| commit | 282cb5ee5d75b4de2f215479b0c5531750908608 (patch) | |
| tree | a547a460bce58f0203980658875f6a91f6bf0f70 /src/Compilation.zig | |
| parent | 8f2af35eaaf94493b4e459e14a1eda7ef00b7f64 (diff) | |
| parent | 8b9627f01d44b94fad744f6d515dc32438130628 (diff) | |
| download | zig-282cb5ee5d75b4de2f215479b0c5531750908608.tar.gz zig-282cb5ee5d75b4de2f215479b0c5531750908608.zip | |
Merge pull request #16559 from kcbanner/improve_compiler_rt_stack_trace
Unwinding follow up: Don't strip compiler_rt symbols, enable unwind tables on supported platforms
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 4019e43c8d..2e269a7e80 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -5491,6 +5491,7 @@ fn buildOutputFromZig( .omit_frame_pointer = comp.bin_file.options.omit_frame_pointer, .want_valgrind = false, .want_tsan = false, + .want_unwind_tables = comp.bin_file.options.eh_frame_hdr, .want_pic = comp.bin_file.options.pic, .want_pie = comp.bin_file.options.pie, .emit_h = null, @@ -5639,9 +5640,5 @@ pub fn compilerRtOptMode(comp: Compilation) std.builtin.Mode { /// This decides whether to strip debug info for all zig-provided libraries, including /// compiler-rt, libcxx, libc, libunwind, etc. pub fn compilerRtStrip(comp: Compilation) bool { - if (comp.debug_compiler_runtime_libs) { - return comp.bin_file.options.strip; - } else { - return true; - } + return comp.bin_file.options.strip; } |
