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