X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=compiler%2Frustc_interface%2Fsrc%2Futil.rs;fp=compiler%2Frustc_interface%2Fsrc%2Futil.rs;h=a75383715a9ae76fcbac979ffeb9bb3c0074d9b6;hb=e51f1b7e275584872525bbfbd7c481595b99f237;hp=3fa8017dc93c344dd972908dc64286cf158b577d;hpb=50b00252aeb77b10db04d65dc9e12ce758def4b5;p=rust.git diff --git a/compiler/rustc_interface/src/util.rs b/compiler/rustc_interface/src/util.rs index 3fa8017dc93..a75383715a9 100644 --- a/compiler/rustc_interface/src/util.rs +++ b/compiler/rustc_interface/src/util.rs @@ -48,7 +48,10 @@ pub fn add_configuration( ) { let tf = sym::target_feature; - let target_features = codegen_backend.target_features(sess); + let unstable_target_features = codegen_backend.target_features(sess, true); + sess.unstable_target_features.extend(unstable_target_features.iter().cloned()); + + let target_features = codegen_backend.target_features(sess, false); sess.target_features.extend(target_features.iter().cloned()); cfg.extend(target_features.into_iter().map(|feat| (tf, Some(feat))));