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:
Alex Crichton 2016-11-09 09:12:38 -08:00
parent 38a959a543
commit cc2c812701

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