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

compiler: Classify libgcc as an alias for compiler-rt.

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.

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

src/target.zig+1
...@@ -268,6 +268,7 @@ pub fn classifyCompilerRtLibName(name: []const u8) CompilerRtClassification {...@@ -268,6 +268,7 @@ pub fn classifyCompilerRtLibName(name: []const u8) CompilerRtClassification {
268 return .both;268 return .both;
269 }269 }
270 if (std.mem.eql(u8, name, "compiler_rt") or270 if (std.mem.eql(u8, name, "compiler_rt") or
271 std.mem.eql(u8, name, "gcc") or
271 std.mem.eql(u8, name, "atomic"))272 std.mem.eql(u8, name, "atomic"))
272 {273 {
273 return .only_compiler_rt;274 return .only_compiler_rt;