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.
This commit is contained in:
Alex Rønne Petersen
2024-12-06 14:12:18 +01:00
parent 37a34b54af
commit e7169e9d4d

View File

@@ -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;