From e7169e9d4d6baa6d5f7db1852a3b7389e2688f46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Fri, 6 Dec 2024 14:12:18 +0100 Subject: [PATCH] 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. --- src/target.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/target.zig b/src/target.zig index 56069c26b20f..b7f7da40e8f4 100644 --- a/src/target.zig +++ b/src/target.zig @@ -272,7 +272,9 @@ pub fn classifyCompilerRtLibName(name: []const u8) CompilerRtClassification { { return .only_compiler_rt; } - if (std.mem.eql(u8, name, "unwind")) { + if (std.mem.eql(u8, name, "unwind") or + std.mem.eql(u8, name, "gcc_eh")) + { return .only_libunwind; } return .none;