diff options
| author | liushuyu <liushuyu011@gmail.com> | 2024-07-09 16:53:11 +0800 |
|---|---|---|
| committer | liushuyu <liushuyu011@gmail.com> | 2024-07-17 07:55:56 +0800 |
| commit | 366bc8691b53fb40994c6ea86f4e4091000bd16a (patch) | |
| tree | 7e44202eb7a5eebec589c15168edd88c71318bdc | |
| parent | c940d52cb08b3cb82f53b90ab2b0078e77ec9834 (diff) | |
| download | rust-366bc8691b53fb40994c6ea86f4e4091000bd16a.tar.gz rust-366bc8691b53fb40994c6ea86f4e4091000bd16a.zip | |
rustc_codegen_ssa: add s390x_target_feature symbol
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/target_features.rs | 1 | ||||
| -rw-r--r-- | compiler/rustc_feature/src/unstable.rs | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/target_features.rs b/compiler/rustc_codegen_ssa/src/target_features.rs index cea164df617..e7cee5220d6 100644 --- a/compiler/rustc_codegen_ssa/src/target_features.rs +++ b/compiler/rustc_codegen_ssa/src/target_features.rs @@ -82,6 +82,7 @@ pub fn from_target_feature( Some(sym::prfchw_target_feature) => rust_features.prfchw_target_feature, Some(sym::x86_amx_intrinsics) => rust_features.x86_amx_intrinsics, Some(sym::xop_target_feature) => rust_features.xop_target_feature, + Some(sym::s390x_target_feature) => rust_features.s390x_target_feature, Some(name) => bug!("unknown target feature gate {}", name), None => true, }; diff --git a/compiler/rustc_feature/src/unstable.rs b/compiler/rustc_feature/src/unstable.rs index 1db3774222a..165fbe3dfc6 100644 --- a/compiler/rustc_feature/src/unstable.rs +++ b/compiler/rustc_feature/src/unstable.rs @@ -312,6 +312,7 @@ declare_features! ( (unstable, prfchw_target_feature, "1.78.0", Some(44839)), (unstable, riscv_target_feature, "1.45.0", Some(44839)), (unstable, rtm_target_feature, "1.35.0", Some(44839)), + (unstable, s390x_target_feature, "CURRENT_RUSTC_VERSION", Some(44839)), (unstable, sse4a_target_feature, "1.27.0", Some(44839)), (unstable, tbm_target_feature, "1.27.0", Some(44839)), (unstable, wasm_target_feature, "1.30.0", Some(44839)), |
