We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef1a3b9 commit 6f53f3bCopy full SHA for 6f53f3b
compiler/rustc_codegen_llvm/src/llvm_util.rs
@@ -417,7 +417,10 @@ pub fn llvm_global_features(sess: &Session) -> Vec<String> {
417
features.extend(sess.opts.cg.target_feature.split(',').flat_map(&filter));
418
419
// FIXME: Move outline-atomics to target definition when earliest supported LLVM is 12.
420
- if get_version() >= (12, 0, 0) && sess.target.llvm_target.contains("aarch64-unknown-linux") {
+ if get_version() >= (12, 0, 0)
421
+ && sess.target.llvm_target.contains("aarch64-unknown-linux")
422
+ && sess.target.llvm_target != "aarch64-unknown-linux-musl"
423
+ {
424
features.push("+outline-atomics".to_string());
425
}
426
0 commit comments