Move outline-atomics to aarch64-linux target definitions

This commit is contained in:
Josh Stone 2021-11-05 10:28:12 -07:00
parent 1d04577ee0
commit c9567e2424
6 changed files with 9 additions and 6 deletions

View file

@ -406,11 +406,6 @@ pub fn llvm_global_features(sess: &Session) -> Vec<String> {
// -Ctarget-features
features.extend(sess.opts.cg.target_feature.split(',').flat_map(&filter));
// FIXME: Move outline-atomics to target definition when earliest supported LLVM is 12.
if get_version() >= (12, 0, 0) && sess.target.llvm_target.contains("aarch64-unknown-linux") {
features.push("+outline-atomics".to_string());
}
features
}