diff --git a/src/target.zig b/src/target.zig index 6297d21bfc..ae3a8e7ecc 100644 --- a/src/target.zig +++ b/src/target.zig @@ -267,7 +267,9 @@ pub fn classifyCompilerRtLibName(target: std.Target, name: []const u8) CompilerR // the linker unable to find `_Unwind_RaiseException` and other related symbols. return .both; } - if (std.mem.eql(u8, name, "compiler_rt")) { + if (std.mem.eql(u8, name, "compiler_rt") or + std.mem.eql(u8, name, "atomic")) + { return .only_compiler_rt; } if (std.mem.eql(u8, name, "unwind")) {