summary refs log tree commit diff
path: root/compiler/rustc_llvm/build.rs
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2021-03-22 12:44:48 -0700
committerJosh Stone <jistone@redhat.com>2021-03-22 12:44:48 -0700
commitb97a33b1cb90326ccfa1c8a9882e50cd9e6de80f (patch)
treeb4d425d65cffda19f6f71ad269d00b6fed816666 /compiler/rustc_llvm/build.rs
parent7d872f538efc5cb3786c3aa0a6654bae7a67ec63 (diff)
downloadrust-b97a33b1cb90326ccfa1c8a9882e50cd9e6de80f.tar.gz
rust-b97a33b1cb90326ccfa1c8a9882e50cd9e6de80f.zip
All supported LLVM versions have MSP430AsmPrinter
Diffstat (limited to 'compiler/rustc_llvm/build.rs')
-rw-r--r--compiler/rustc_llvm/build.rs14
1 files changed, 0 insertions, 14 deletions
diff --git a/compiler/rustc_llvm/build.rs b/compiler/rustc_llvm/build.rs
index 621363bed80..301ed639f3b 100644
--- a/compiler/rustc_llvm/build.rs
+++ b/compiler/rustc_llvm/build.rs
@@ -88,16 +88,6 @@ fn main() {
         "riscv",
     ];
 
-    let mut version_cmd = Command::new(&llvm_config);
-    version_cmd.arg("--version");
-    let version_output = output(&mut version_cmd);
-    let mut parts = version_output.split('.').take(2).filter_map(|s| s.parse::<u32>().ok());
-    let (major, _minor) = if let (Some(major), Some(minor)) = (parts.next(), parts.next()) {
-        (major, minor)
-    } else {
-        (8, 0)
-    };
-
     let required_components = &[
         "ipo",
         "bitreader",
@@ -123,10 +113,6 @@ fn main() {
         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
     let mut cmd = Command::new(&llvm_config);
     cmd.arg("--cxxflags");