diff options
| author | Ralf Jung <post@ralfj.de> | 2024-11-16 10:00:16 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2024-12-11 22:11:15 +0100 |
| commit | 2d887a5c5ca65287bb40dc5b2d108e2bb2dd6719 (patch) | |
| tree | af562288d549ff410de0ed4bd055d3fb6ba17279 /compiler/rustc_codegen_cranelift/src/lib.rs | |
| parent | 1f3bf231e160b9869e2a85260fd6805304bfcee2 (diff) | |
| download | rust-2d887a5c5ca65287bb40dc5b2d108e2bb2dd6719.tar.gz rust-2d887a5c5ca65287bb40dc5b2d108e2bb2dd6719.zip | |
generalize 'forbidden feature' concept so that even (un)stable feature can be invalid to toggle
Also rename some things for extra clarity
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/lib.rs')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/lib.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/lib.rs b/compiler/rustc_codegen_cranelift/src/lib.rs index 9f552b3feb9..75f5b32daaa 100644 --- a/compiler/rustc_codegen_cranelift/src/lib.rs +++ b/compiler/rustc_codegen_cranelift/src/lib.rs @@ -175,7 +175,11 @@ impl CodegenBackend for CraneliftCodegenBackend { } } - fn target_features(&self, sess: &Session, _allow_unstable: bool) -> Vec<rustc_span::Symbol> { + fn target_features_cfg( + &self, + sess: &Session, + _allow_unstable: bool, + ) -> Vec<rustc_span::Symbol> { // FIXME return the actually used target features. this is necessary for #[cfg(target_feature)] if sess.target.arch == "x86_64" && sess.target.os != "none" { // x86_64 mandates SSE2 support |
