-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Allow for opt-level=s,z during bootstrap #33453
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
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @brson (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. |
@bors r+ rollup |
📌 Commit a345842 has been approved by |
@brson The tests set the |
@bors r- @petevine Hm, I guess I don't understand what the issue is. Am I correct that this patch fixes the bootstrap when overriding |
Yeah thanks, I inadvertently broke the tests which in their own If you want me to unset all possible opt-levels, will the syntax like: |
FYI, option parsing issue is #32352. |
@brson This patch can't be merged as-is because it breaks tests even if you don't override RUSTFLAGS. |
I'll close for the time being as it seems environment |
Until rustc starts accepting both
-O
and-C opt-level
on the same command line (the last option given should take precedence, other flags are also affected) this change enables using e.g.:RUSTFLAGS=-Copt-level=z
during bootstrap, as multiple opt-level flags happen to be handled correctly.