diff options
| author | Havard Eidnes <he@NetBSD.org> | 2023-10-27 09:37:25 +0000 |
|---|---|---|
| committer | Havard Eidnes <he@NetBSD.org> | 2023-10-27 09:37:25 +0000 |
| commit | 0f04e2dd8f08951b3b9d0641febdcf3003f876aa (patch) | |
| tree | e0ab90dffb482bb6bc373acc7a226bb942aad2bf | |
| parent | 893e7266376f8c7629a5b5130e95bc3063128f77 (diff) | |
| download | rust-0f04e2dd8f08951b3b9d0641febdcf3003f876aa.tar.gz rust-0f04e2dd8f08951b3b9d0641febdcf3003f876aa.zip | |
For i586/NetBSD: fix another formatting insistence.
| -rw-r--r-- | compiler/rustc_llvm/build.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/compiler/rustc_llvm/build.rs b/compiler/rustc_llvm/build.rs index e4412132136..fe13162cd4a 100644 --- a/compiler/rustc_llvm/build.rs +++ b/compiler/rustc_llvm/build.rs @@ -261,9 +261,7 @@ fn main() { // On NetBSD/i386, gcc and g++ is built for i486 (to maximize backward compat) // However, LLVM insists on using 64-bit atomics. // This gives rise to a need to link rust itself with -latomic for these targets - if target.starts_with("i586") - || target.starts_with("i686") - { + if target.starts_with("i586") || target.starts_with("i686") { println!("cargo:rustc-link-lib=atomic"); } println!("cargo:rustc-link-lib=z"); |
