Rollup merge of #37667 - alexcrichton:fix-llvm-version, r=japaric
rustc_llvm: Require 3.9 for --link-static Apparently stock Ubuntu 16.04 includes LLVM 3.8 which doesn't have this flag.
This commit is contained in:
commit
3a5b45aae5
@ -136,7 +136,7 @@ fn main() {
|
||||
let mut parts = version_output.split('.');
|
||||
if let (Some(major), Some(minor)) = (parts.next().and_then(|s| s.parse::<u32>().ok()),
|
||||
parts.next().and_then(|s| s.parse::<u32>().ok())) {
|
||||
if major > 3 || (major == 3 && minor >= 8) {
|
||||
if major > 3 || (major == 3 && minor >= 9) {
|
||||
cmd.arg("--link-static");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user