Skip to content
/ zig Public
forked from ziglang/zig

Commit

Permalink
compiler: Classify libgcc_eh as an alias for libunwind.
Browse files Browse the repository at this point in the history
This is GCC's take on libunwind. We can satisfy it by way of our bundled LLVM
libunwind implementation.

Closes ziglang#17268.
  • Loading branch information
alexrp committed Dec 6, 2024
1 parent 7e5f7dd commit d0c962e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/target.zig
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,9 @@ pub fn classifyCompilerRtLibName(target: std.Target, name: []const u8) CompilerR
{
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;
Expand Down

0 comments on commit d0c962e

Please sign in to comment.