Skip to content

Commit 3a5b45a

Browse files
authored
Rollup merge of #37667 - alexcrichton:fix-llvm-version, r=japaric
rustc_llvm: Require 3.9 for --link-static Apparently stock Ubuntu 16.04 includes LLVM 3.8 which doesn't have this flag.
2 parents e733667 + cc2c812 commit 3a5b45a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/librustc_llvm/build.rs

+1-1
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)