| ... | @@ -260,8 +260,8 @@ pub fn supportsReturnAddress(target: std.Target) bool { | ... | @@ -260,8 +260,8 @@ pub fn supportsReturnAddress(target: std.Target) bool { |
| 260 | | 260 | |
| 261 | pub const CompilerRtClassification = enum { none, only_compiler_rt, only_libunwind, both }; | 261 | pub const CompilerRtClassification = enum { none, only_compiler_rt, only_libunwind, both }; |
| 262 | | 262 | |
| 263 | pub fn classifyCompilerRtLibName(target: std.Target, name: []const u8) CompilerRtClassification { | 263 | pub fn classifyCompilerRtLibName(name: []const u8) CompilerRtClassification { |
| 264 | if (target.abi.isGnu() and std.mem.eql(u8, name, "gcc_s")) { | 264 | if (std.mem.eql(u8, name, "gcc_s")) { |
| 265 | // libgcc_s includes exception handling functions, so if linking this library | 265 | // libgcc_s includes exception handling functions, so if linking this library |
| 266 | // is requested, zig needs to instead link libunwind. Otherwise we end up with | 266 | // is requested, zig needs to instead link libunwind. Otherwise we end up with |
| 267 | // the linker unable to find `_Unwind_RaiseException` and other related symbols. | 267 | // the linker unable to find `_Unwind_RaiseException` and other related symbols. |