Skip to content

Commit

Permalink
rustc_llvm: Require 3.9 for --link-static
Browse files Browse the repository at this point in the history
Apparently stock Ubuntu 16.04 includes LLVM 3.8 which doesn't have this flag.
  • Loading branch information
alexcrichton committed Nov 9, 2016
1 parent 38a959a commit cc2c812
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc_llvm/build.rs
Expand Up @@ -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");
}
}
Expand Down

0 comments on commit cc2c812

Please sign in to comment.