-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Add config option and cli arg for skip-llvm-rebuild #65848
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @alexcrichton (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
The job Click to expand the log.
I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact |
I'm not sure if adding the |
Thanks for the PR! I think I may be missing something though? It looks like this adds configuration for skipping an LLVM rebuild but doesn't actually end up reading it when building LLVM? Also cc @varkor who requested these changes |
Ah, it's not enough to skip the submodule in bootstrap.py https://github.com/rust-lang/rust/pull/65848/files#diff-3e203f016947a52e3f1fad3967027e7eR734-R740 - sorry, I'll take a new look at where else it needs to be skipped 👍 |
Ping from triage: Thank you! |
I have a simple question - at In addition to what's visible in the PR, I already locally added the lines necessary to actually skip the LLVM build in if builder.config.skip_llvm_rebuild {
builder.info("Skipping LLVM rebuild");
return build_llvm_config
} |
I think in general it's fine to only update |
Ping from triage: Thank you! |
Sorry, I've been fairly busy! I hope I can get back at this next weekend or so. If not, and if someone wants to quickly fix this instead, that's okay too. There's always more issues to help with :) |
Ping from Triage: Any update @Walther? |
Ping from triage: Thank you. |
Ping from triage: |
…Mark-Simulacrum Add LLVM `skip-rebuild` option to `x.py` This PR reimplements parts of @Walther's work from rust-lang#65848, and closes rust-lang#65612. I decided not to implement the [arguments to override this setting](rust-lang#65612 (comment)) in this PR. If there's strong feeling that this change shouldn't be merged without the overrides then I'm happy to close this until I've had a chance to add them in. Otherwise I'll aim to submit a second PR with those this weekend. I'd have liked to have tested the change in `native.rs`, but there didn't seem to be any existing test infrastructure. I ran this a few times manually and it _worked on my machine_ though... 😬
…crum Add LLVM `skip-rebuild` option to `x.py` This PR reimplements parts of @Walther's work from #65848, and closes #65612. I decided not to implement the [arguments to override this setting](#65612 (comment)) in this PR. If there's strong feeling that this change shouldn't be merged without the overrides then I'm happy to close this until I've had a chance to add them in. Otherwise I'll aim to submit a second PR with those this weekend. I'd have liked to have tested the change in `native.rs`, but there didn't seem to be any existing test infrastructure. I ran this a few times manually and it _worked on my machine_ though... 😬
Fixes #65612.
First time contributing, please let me know if there's anything I need to tweak 🙂 ❤️