diff options
| author | Josh Stone <jistone@redhat.com> | 2023-02-10 16:13:31 -0800 |
|---|---|---|
| committer | Josh Stone <jistone@redhat.com> | 2023-02-10 16:13:31 -0800 |
| commit | ffdbd58d85ef1f172e4b78e00655b36131ed1d4f (patch) | |
| tree | a214c88fbd9f2a80c41fd24c8f1ec82bba289f05 /compiler/rustc_codegen_llvm/src | |
| parent | a06aaa4a9efe605b91b2f42718696906ce2ba629 (diff) | |
| download | rust-ffdbd58d85ef1f172e4b78e00655b36131ed1d4f.tar.gz rust-ffdbd58d85ef1f172e4b78e00655b36131ed1d4f.zip | |
Drop llvm14-builtins-abi with compiler_builtins 0.1.87
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/llvm_util.rs | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/compiler/rustc_codegen_llvm/src/llvm_util.rs b/compiler/rustc_codegen_llvm/src/llvm_util.rs index 12e3581c663..20b1dd94153 100644 --- a/compiler/rustc_codegen_llvm/src/llvm_util.rs +++ b/compiler/rustc_codegen_llvm/src/llvm_util.rs @@ -211,7 +211,7 @@ pub fn check_tied_features( /// Must express features in the way Rust understands them pub fn target_features(sess: &Session, allow_unstable: bool) -> Vec<Symbol> { let target_machine = create_informational_target_machine(sess); - let mut features: Vec<Symbol> = supported_target_features(sess) + supported_target_features(sess) .iter() .filter_map(|&(feature, gate)| { if sess.is_nightly_build() || allow_unstable || gate.is_none() { @@ -231,16 +231,7 @@ pub fn target_features(sess: &Session, allow_unstable: bool) -> Vec<Symbol> { true }) .map(|feature| Symbol::intern(feature)) - .collect(); - - // LLVM 14 changed the ABI for i128 arguments to __float/__fix builtins on Win64 - // (see https://reviews.llvm.org/D110413). This unstable target feature is intended for use - // by compiler-builtins, to export the builtins with the expected, LLVM-version-dependent ABI. - // The target feature can be dropped once we no longer support older LLVM versions. - if sess.is_nightly_build() { - features.push(Symbol::intern("llvm14-builtins-abi")); - } - features + .collect() } pub fn print_version() { |
