Skip to content

Commit cc2c812

Browse files
committed
rustc_llvm: Require 3.9 for --link-static
Apparently stock Ubuntu 16.04 includes LLVM 3.8 which doesn't have this flag.
1 parent 38a959a commit cc2c812

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_llvm/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ fn main() {
136136
let mut parts = version_output.split('.');
137137
if let (Some(major), Some(minor)) = (parts.next().and_then(|s| s.parse::<u32>().ok()),
138138
parts.next().and_then(|s| s.parse::<u32>().ok())) {
139-
if major > 3 || (major == 3 && minor >= 8) {
139+
if major > 3 || (major == 3 && minor >= 9) {
140140
cmd.arg("--link-static");
141141
}
142142
}

0 commit comments

Comments
 (0)