For i586/NetBSD: fix another formatting insistence.

This commit is contained in:
Havard Eidnes 2023-10-27 09:37:25 +00:00
parent 893e726637
commit 0f04e2dd8f

View File

@ -261,9 +261,7 @@ fn main() {
// On NetBSD/i386, gcc and g++ is built for i486 (to maximize backward compat) // On NetBSD/i386, gcc and g++ is built for i486 (to maximize backward compat)
// However, LLVM insists on using 64-bit atomics. // However, LLVM insists on using 64-bit atomics.
// This gives rise to a need to link rust itself with -latomic for these targets // This gives rise to a need to link rust itself with -latomic for these targets
if target.starts_with("i586") if target.starts_with("i586") || target.starts_with("i686") {
|| target.starts_with("i686")
{
println!("cargo:rustc-link-lib=atomic"); println!("cargo:rustc-link-lib=atomic");
} }
println!("cargo:rustc-link-lib=z"); println!("cargo:rustc-link-lib=z");