Add the feature gate and target-features

This commit is contained in:
sayantn 2024-06-23 12:12:51 +05:30 committed by Jubilee Young
parent 5e311f933d
commit ec05c4ea3f
8 changed files with 30 additions and 2 deletions

View file

@ -80,6 +80,7 @@ pub fn from_target_feature(
Some(sym::loongarch_target_feature) => rust_features.loongarch_target_feature,
Some(sym::lahfsahf_target_feature) => rust_features.lahfsahf_target_feature,
Some(sym::prfchw_target_feature) => rust_features.prfchw_target_feature,
Some(sym::x86_amx_intrinsics) => rust_features.x86_amx_intrinsics,
Some(name) => bug!("unknown target feature gate {}", name),
None => true,
};