Skip to content

Commit

Permalink
compiler: Classify libgcc as an alias for compiler-rt.
Browse files Browse the repository at this point in the history
This is GCC's equivalent to compiler-rt. The two libraries have a huge overlap
in exported symbols, so we may as well satisfy it this way to increase
compatibility with build systems in the wild.
  • Loading branch information
alexrp committed Dec 6, 2024
1 parent e7169e9 commit a879c3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/target.zig
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ pub fn classifyCompilerRtLibName(name: []const u8) CompilerRtClassification {
return .both;
}
if (std.mem.eql(u8, name, "compiler_rt") or
std.mem.eql(u8, name, "gcc") or
std.mem.eql(u8, name, "atomic"))
{
return .only_compiler_rt;
Expand Down

0 comments on commit a879c3e

Please sign in to comment.