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:
Eduard-Mihai Burtescu 2016-11-10 03:46:29 +02:00 committed by GitHub
commit 3a5b45aae5

View File

@ -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");
}
}