reject aarch64 target feature toggling that would change the float ABI

This commit is contained in:
Ralf Jung
2024-11-24 12:35:50 +01:00
parent eb2e928250
commit 1f8236d4c7
5 changed files with 59 additions and 1 deletions

View File

@@ -2615,6 +2615,18 @@ impl TargetOptions {
}
})
}
pub(crate) fn has_neg_feature(&self, search_feature: &str) -> bool {
self.features.split(',').any(|f| {
if let Some(f) = f.strip_prefix('-')
&& f == search_feature
{
true
} else {
false
}
})
}
}
impl Default for TargetOptions {