1
Fork 0

add ABI target features *before* -Ctarget-features

This commit is contained in:
Ralf Jung 2024-12-27 22:19:55 +01:00
parent eb527424a5
commit 912b7291d0
4 changed files with 19 additions and 16 deletions

View file

@ -743,6 +743,9 @@ impl Target {
/// the first list contains target features that must be enabled for ABI reasons,
/// and the second list contains target feature that must be disabled for ABI reasons.
///
/// These features are automatically appended to whatever the target spec sats as default
/// features for the target.
///
/// All features enabled/disabled via `-Ctarget-features` and `#[target_features]` are checked
/// against this. We also check any implied features, based on the information above. If LLVM
/// implicitly enables more implied features than we do, that could bypass this check!