rustc_llvm: Link against libatomic on 32-bit SPARC

While at it, order the list of architectures alphabetically.
This commit is contained in:
John Paul Adrian Glaubitz 2024-06-24 16:36:38 +02:00
parent 572ae3b227
commit dc8ac3ec91

View File

@ -235,6 +235,7 @@ fn main() {
|| target.starts_with("mips-") || target.starts_with("mips-")
|| target.starts_with("mipsel-") || target.starts_with("mipsel-")
|| target.starts_with("powerpc-") || target.starts_with("powerpc-")
|| target.starts_with("sparc-")
{ {
// 32-bit targets need to link libatomic. // 32-bit targets need to link libatomic.
println!("cargo:rustc-link-lib=atomic"); println!("cargo:rustc-link-lib=atomic");