authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-12-06 14:12:18+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-12-06 14:57:22+01:00
loge7169e9d4d6baa6d5f7db1852a3b7389e2688f46
tree0b715d212a6613bd5db0111a10683319f04369e5
parent37a34b54afee183f397cf708ac8d074fa7cc92d6
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

compiler: Classify libgcc_eh as an alias for libunwind.

This is GCC's take on libunwind. We can satisfy it by way of our bundled LLVM libunwind implementation. Closes #17268.

1 files changed, 3 insertions(+), 1 deletions(-)

src/target.zig+3-1
...@@ -272,7 +272,9 @@ pub fn classifyCompilerRtLibName(name: []const u8) CompilerRtClassification {...@@ -272,7 +272,9 @@ pub fn classifyCompilerRtLibName(name: []const u8) CompilerRtClassification {
272 {272 {
273 return .only_compiler_rt;273 return .only_compiler_rt;
274 }274 }
275 if (std.mem.eql(u8, name, "unwind")) {275 if (std.mem.eql(u8, name, "unwind") or
276 std.mem.eql(u8, name, "gcc_eh"))
277 {
276 return .only_libunwind;278 return .only_libunwind;
277 }279 }
278 return .none;280 return .none;