File tree 2 files changed +6
-0
lines changed
2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -119,6 +119,10 @@ fn main() {
119
119
println ! ( "cargo:rustc-cfg=llvm_component=\" {}\" " , component) ;
120
120
}
121
121
122
+ if major >= 9 {
123
+ println ! ( "cargo:rustc-cfg=llvm_has_msp430_asm_parser" ) ;
124
+ }
125
+
122
126
// Link in our own LLVM shims, compiled with the same flags as LLVM
123
127
let mut cmd = Command :: new ( & llvm_config) ;
124
128
cmd. arg ( "--cxxflags" ) ;
Original file line number Diff line number Diff line change @@ -76,6 +76,8 @@ pub fn initialize_available_targets() {
76
76
LLVMInitializeMSP430Target ,
77
77
LLVMInitializeMSP430TargetMC ,
78
78
LLVMInitializeMSP430AsmPrinter ) ;
79
+ init_target ! ( all( llvm_component = "msp430" , llvm_has_msp430_asm_parser) ,
80
+ LLVMInitializeMSP430AsmParser ) ;
79
81
init_target ! ( llvm_component = "riscv" ,
80
82
LLVMInitializeRISCVTargetInfo ,
81
83
LLVMInitializeRISCVTarget ,
You can’t perform that action at this time.
0 commit comments