File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ use std::sync::Arc;
4040use cranelift_codegen:: isa:: TargetIsa ;
4141use cranelift_codegen:: settings:: { self , Configurable } ;
4242use rustc_codegen_ssa:: CodegenResults ;
43+ use rustc_codegen_ssa:: back:: versioned_llvm_target;
4344use rustc_codegen_ssa:: traits:: CodegenBackend ;
4445use rustc_data_structures:: profiling:: SelfProfilerRef ;
4546use rustc_errors:: ErrorGuaranteed ;
@@ -260,7 +261,9 @@ impl CodegenBackend for CraneliftCodegenBackend {
260261}
261262
262263fn target_triple ( sess : & Session ) -> target_lexicon:: Triple {
263- match sess. target . llvm_target . parse ( ) {
264+ // FIXME(madsmtm): Use `sess.target.llvm_target` once target-lexicon supports unversioned macOS.
265+ // See <https://github.com/bytecodealliance/target-lexicon/pull/113>
266+ match versioned_llvm_target ( sess) . parse ( ) {
264267 Ok ( triple) => triple,
265268 Err ( err) => sess. dcx ( ) . fatal ( format ! ( "target not recognized: {}" , err) ) ,
266269 }
You can’t perform that action at this time.
0 commit comments