We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89582e8 commit 1db8171Copy full SHA for 1db8171
compiler/rustc_llvm/build.rs
@@ -242,6 +242,13 @@ fn main() {
242
println!("cargo:rustc-link-lib=uuid");
243
} else if target.contains("netbsd") || target.contains("haiku") || target.contains("darwin") {
244
println!("cargo:rustc-link-lib=z");
245
+ } else if target.starts_with("arm")
246
+ || target.starts_with("mips-")
247
+ || target.starts_with("mipsel-")
248
+ || target.starts_with("powerpc-")
249
+ {
250
+ // 32-bit targets need to link libatomic.
251
+ println!("cargo:rustc-link-lib=atomic");
252
}
253
cmd.args(&components);
254
0 commit comments