authorgravatar for kcbanner@gmail.comCasey Banner <kcbanner@gmail.com> 2023-07-23 14:07:14-04:00
committergravatar for kcbanner@gmail.comCasey Banner <kcbanner@gmail.com> 2023-07-26 20:58:29-04:00
logf2aab12a8627b3afd1a4d9c38157968b2f012e0c
tree6fe3ccb998db142ed7a2274e467d3d7c2ddb0cc7
parenta84826115fa06b8f2da2b3cf0f182c4b75706e2c

compilation: change compiler_rt to inherit `strip` and `want_unwind_tables` from the parent compilation


1 files changed, 2 insertions(+), 5 deletions(-)

src/Compilation.zig+2-5
...@@ -5491,6 +5491,7 @@ fn buildOutputFromZig(...@@ -5491,6 +5491,7 @@ fn buildOutputFromZig(
5491 .omit_frame_pointer = comp.bin_file.options.omit_frame_pointer,5491 .omit_frame_pointer = comp.bin_file.options.omit_frame_pointer,
5492 .want_valgrind = false,5492 .want_valgrind = false,
5493 .want_tsan = false,5493 .want_tsan = false,
5494 .want_unwind_tables = comp.bin_file.options.eh_frame_hdr,
5494 .want_pic = comp.bin_file.options.pic,5495 .want_pic = comp.bin_file.options.pic,
5495 .want_pie = comp.bin_file.options.pie,5496 .want_pie = comp.bin_file.options.pie,
5496 .emit_h = null,5497 .emit_h = null,
...@@ -5639,9 +5640,5 @@ pub fn compilerRtOptMode(comp: Compilation) std.builtin.Mode {...@@ -5639,9 +5640,5 @@ pub fn compilerRtOptMode(comp: Compilation) std.builtin.Mode {
5639/// This decides whether to strip debug info for all zig-provided libraries, including5640/// This decides whether to strip debug info for all zig-provided libraries, including
5640/// compiler-rt, libcxx, libc, libunwind, etc.5641/// compiler-rt, libcxx, libc, libunwind, etc.
5641pub fn compilerRtStrip(comp: Compilation) bool {5642pub fn compilerRtStrip(comp: Compilation) bool {
5642 if (comp.debug_compiler_runtime_libs) {5643 return comp.bin_file.options.strip;
5643 return comp.bin_file.options.strip;
5644 } else {
5645 return true;
5646 }
5647}5644}