diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2024-12-06 14:41:34 +0100 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2024-12-06 14:57:22 +0100 |
| commit | a879c3ea0b6cf46c879b0c92925fd6024c2d4ca4 (patch) | |
| tree | 115f377b239e17c3f131ffd1501257cd6a4e3ddb /src | |
| parent | e7169e9d4d6baa6d5f7db1852a3b7389e2688f46 (diff) | |
| download | zig-a879c3ea0b6cf46c879b0c92925fd6024c2d4ca4.tar.gz zig-a879c3ea0b6cf46c879b0c92925fd6024c2d4ca4.zip | |
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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/target.zig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/target.zig b/src/target.zig index b7f7da40e8..bfa65c0178 100644 --- a/src/target.zig +++ b/src/target.zig @@ -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; |
