Skip to content

Commit

Permalink
generalize 'forbidden feature' concept so that even (un)stable featur…
Browse files Browse the repository at this point in the history
…e can be invalid to toggle

Also rename some things for extra clarity
  • Loading branch information
RalfJung committed Dec 11, 2024
1 parent 1c9a333 commit 8d3a263
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8d3a263

Please sign in to comment.