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:
parent
38a959a543
commit
cc2c812701
@ -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