diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-11-05 18:10:26 +0100 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2024-11-05 20:10:12 +0100 |
| commit | e88501a09076e134675160c373bbfb5321038541 (patch) | |
| tree | 11190d889ed9614a200567e7f3591b2ad1775d3f /src/Compilation.zig | |
| parent | 7b1d2fa004ef8b1f59ff0b54327f47bb98e18563 (diff) | |
| download | zig-e88501a09076e134675160c373bbfb5321038541.tar.gz zig-e88501a09076e134675160c373bbfb5321038541.zip | |
Compilation: Fix unwind table logic for compiler-rt.
This looks to be a refactoring leftover.
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index acf85f9fc1..b3684d7e61 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -6155,7 +6155,6 @@ fn buildOutputFromZig( assert(output_mode != .Exe); - const unwind_tables = comp.link_eh_frame_hdr; const strip = comp.compilerRtStrip(); const optimize_mode = comp.compilerRtOptMode(); @@ -6169,7 +6168,6 @@ fn buildOutputFromZig( .root_optimize_mode = optimize_mode, .root_strip = strip, .link_libc = comp.config.link_libc, - .any_unwind_tables = unwind_tables, }); const root_mod = try Package.Module.create(arena, .{ @@ -6186,7 +6184,7 @@ fn buildOutputFromZig( .stack_protector = 0, .red_zone = comp.root_mod.red_zone, .omit_frame_pointer = comp.root_mod.omit_frame_pointer, - .unwind_tables = unwind_tables, + .unwind_tables = comp.root_mod.unwind_tables, .pic = comp.root_mod.pic, .optimize_mode = optimize_mode, .structured_cfg = comp.root_mod.structured_cfg, |
