-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Assume at least LLVM 3.9 in rustllvm and rustc_llvm #46435
Conversation
We bumped the minimum LLVM to 3.9 in rust-lang#45326. This just cleans up the conditional code in the rustllvm C++ wrappers to assume at least 3.9.
r? @arielb1 (rust_highfive has picked a reviewer for you, use r? to override) |
@@ -96,11 +83,11 @@ fn main() { | |||
let version_output = output(&mut version_cmd); | |||
let mut parts = version_output.split('.').take(2) | |||
.filter_map(|s| s.parse::<u32>().ok()); | |||
let (major, minor) = | |||
let (major, _minor) = | |||
if let (Some(major), Some(minor)) = (parts.next(), parts.next()) { | |||
(major, minor) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't this panic!
if it encounters a version < 3.9?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We certainly could, but this is also checked in bootstrap.
LGTM, nice cleanup! Supposedly I have bors access now, let's try this: @bors r+ |
@rkruppe: 🔑 Insufficient privileges: Not in reviewers |
@rkruppe: 🔑 Insufficient privileges: and not in try users |
📌 Commit 5c4452a has been approved by |
Assume at least LLVM 3.9 in rustllvm and rustc_llvm We bumped the minimum LLVM to 3.9 in #45326. This just cleans up the conditional code in the `rustllvm` C++ wrappers to assume that minimum, and similarly cleans up the `rustc_llvm` build script.
☀️ Test successful - status-appveyor, status-travis |
We bumped the minimum LLVM to 3.9 in #45326. This just cleans up the conditional code in the
rustllvm
C++ wrappers to assume that minimum, and similarly cleans up therustc_llvm
build script.