1
Fork 0

Bump the minimal supported LLVM version in the bootstrapping code to 9.0

This commit is contained in:
DevJPM 2020-11-07 22:53:44 +01:00
parent 63235651e8
commit 6830f1c6e2

View file

@ -348,11 +348,11 @@ fn check_llvm_version(builder: &Builder<'_>, llvm_config: &Path) {
let version = output(cmd.arg("--version"));
let mut parts = version.split('.').take(2).filter_map(|s| s.parse::<u32>().ok());
if let (Some(major), Some(_minor)) = (parts.next(), parts.next()) {
if major >= 8 {
if major >= 9 {
return;
}
}
panic!("\n\nbad LLVM version: {}, need >=8.0\n\n", version)
panic!("\n\nbad LLVM version: {}, need >=9.0\n\n", version)
}
fn configure_cmake(