diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2016-11-09 09:12:38 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2016-11-09 09:12:38 -0800 |
| commit | cc2c812701c9bc1ac4a4165f37bacbe69c80a334 (patch) | |
| tree | d5cd8152096b6bbde58e8ca021682052ab96d6c0 | |
| parent | 38a959a543dfc70a67e64f7d369ed6c9e12fc806 (diff) | |
| download | rust-cc2c812701c9bc1ac4a4165f37bacbe69c80a334.tar.gz rust-cc2c812701c9bc1ac4a4165f37bacbe69c80a334.zip | |
rustc_llvm: Require 3.9 for --link-static
Apparently stock Ubuntu 16.04 includes LLVM 3.8 which doesn't have this flag.
| -rw-r--r-- | src/librustc_llvm/build.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_llvm/build.rs b/src/librustc_llvm/build.rs index 4d3a4d09dce..8656bb8bf00 100644 --- a/src/librustc_llvm/build.rs +++ b/src/librustc_llvm/build.rs @@ -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"); } } |
