We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6642b4b commit 391b472Copy full SHA for 391b472
compiler/rustc_llvm/build.rs
@@ -258,7 +258,9 @@ fn main() {
258
{
259
println!("cargo:rustc-link-lib=z");
260
} else if target.contains("netbsd") {
261
- // Building for i586 or i686, we need -latomic for 64-bit atomics
+ // On NetBSD/i386, gcc and g++ is built for i486 (to maximize backward compat)
262
+ // However, LLVM insists on using 64-bit atomics.
263
+ // This gives rise to a need to link rust itself with -latomic for these targets
264
if target.starts_with("i586")
265
|| target.starts_with("i686")
266
0 commit comments