File tree 1 file changed +4
-1
lines changed
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;
40
40
use cranelift_codegen:: isa:: TargetIsa ;
41
41
use cranelift_codegen:: settings:: { self , Configurable } ;
42
42
use rustc_codegen_ssa:: CodegenResults ;
43
+ use rustc_codegen_ssa:: back:: versioned_llvm_target;
43
44
use rustc_codegen_ssa:: traits:: CodegenBackend ;
44
45
use rustc_data_structures:: profiling:: SelfProfilerRef ;
45
46
use rustc_errors:: ErrorGuaranteed ;
@@ -260,7 +261,9 @@ impl CodegenBackend for CraneliftCodegenBackend {
260
261
}
261
262
262
263
fn 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 ( ) {
264
267
Ok ( triple) => triple,
265
268
Err ( err) => sess. dcx ( ) . fatal ( format ! ( "target not recognized: {}" , err) ) ,
266
269
}
You can’t perform that action at this time.
0 commit comments