File tree Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -88,16 +88,6 @@ fn main() {
88
88
"riscv",
89
89
];
90
90
91
- let mut version_cmd = Command::new(&llvm_config);
92
- version_cmd.arg("--version");
93
- let version_output = output(&mut version_cmd);
94
- let mut parts = version_output.split('.').take(2).filter_map(|s| s.parse::<u32>().ok());
95
- let (major, _minor) = if let (Some(major), Some(minor)) = (parts.next(), parts.next()) {
96
- (major, minor)
97
- } else {
98
- (8, 0)
99
- };
100
-
101
91
let required_components = &[
102
92
"ipo",
103
93
"bitreader",
@@ -123,10 +113,6 @@ fn main() {
123
113
println!("cargo:rustc-cfg=llvm_component=\"{}\"", component);
124
114
}
125
115
126
- if major >= 9 {
127
- println!("cargo:rustc-cfg=llvm_has_msp430_asm_parser");
128
- }
129
-
130
116
// Link in our own LLVM shims, compiled with the same flags as LLVM
131
117
let mut cmd = Command::new(&llvm_config);
132
118
cmd.arg("--cxxflags");
Original file line number Diff line number Diff line change @@ -125,10 +125,7 @@ pub fn initialize_available_targets() {
125
125
LLVMInitializeMSP430TargetInfo,
126
126
LLVMInitializeMSP430Target,
127
127
LLVMInitializeMSP430TargetMC,
128
- LLVMInitializeMSP430AsmPrinter
129
- );
130
- init_target!(
131
- all(llvm_component = "msp430", llvm_has_msp430_asm_parser),
128
+ LLVMInitializeMSP430AsmPrinter,
132
129
LLVMInitializeMSP430AsmParser
133
130
);
134
131
init_target!(
You can’t perform that action at this time.
0 commit comments