Rollup merge of #62907 - nikic:msp430-asmparser, r=alexcrichton
Initialize the MSP430 AsmParser Hopefully fixes #59077. r? @alexcrichton
This commit is contained in:
commit
183aab3575
2 changed files with 6 additions and 0 deletions
|
@ -112,6 +112,10 @@ fn main() {
|
||||||
println!("cargo:rustc-cfg=llvm_component=\"{}\"", component);
|
println!("cargo:rustc-cfg=llvm_component=\"{}\"", component);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if major >= 9 {
|
||||||
|
println!("cargo:rustc-cfg=llvm_has_msp430_asm_parser");
|
||||||
|
}
|
||||||
|
|
||||||
// Link in our own LLVM shims, compiled with the same flags as LLVM
|
// Link in our own LLVM shims, compiled with the same flags as LLVM
|
||||||
let mut cmd = Command::new(&llvm_config);
|
let mut cmd = Command::new(&llvm_config);
|
||||||
cmd.arg("--cxxflags");
|
cmd.arg("--cxxflags");
|
||||||
|
|
|
@ -76,6 +76,8 @@ pub fn initialize_available_targets() {
|
||||||
LLVMInitializeMSP430Target,
|
LLVMInitializeMSP430Target,
|
||||||
LLVMInitializeMSP430TargetMC,
|
LLVMInitializeMSP430TargetMC,
|
||||||
LLVMInitializeMSP430AsmPrinter);
|
LLVMInitializeMSP430AsmPrinter);
|
||||||
|
init_target!(all(llvm_component = "msp430", llvm_has_msp430_asm_parser),
|
||||||
|
LLVMInitializeMSP430AsmParser);
|
||||||
init_target!(llvm_component = "riscv",
|
init_target!(llvm_component = "riscv",
|
||||||
LLVMInitializeRISCVTargetInfo,
|
LLVMInitializeRISCVTargetInfo,
|
||||||
LLVMInitializeRISCVTarget,
|
LLVMInitializeRISCVTarget,
|
||||||
|
|
Loading…
Reference in a new issue