-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Make -Cpasses= only apply to pre-link optimization #97969
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
This change causes passes specified in -Cpasses= to be applied only during pre-link optimization, not during LTO. This avoids such passes running multiple times, which they may not be designed for. Fixes rust-lang#97713
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @petrochenkov (or someone else) soon. Please see the contribution instructions for more information. |
@bors r+ This was the legacy PM behavior, so we should restore that. In the future, we might want to provide a more fine-grained way to control where the passes are inserted, but we can think about that once a use-case exists. |
📌 Commit 6738434 has been approved by |
Silently ignoring passed arguments is bad, maybe emit some error\warning? |
@klensy The argument is not being ignored. The passes are still inserted for the non-lto and pre-link-lto pipelines, just not the post-link-lto pipeline. |
…askrgr Rollup of 5 pull requests Successful merges: - rust-lang#97904 (Small grammar fix in the compile_error documentation) - rust-lang#97943 (line 1352, change `self` to `*self`, other to `*other`) - rust-lang#97969 (Make -Cpasses= only apply to pre-link optimization) - rust-lang#97990 (Add more eslint checks) - rust-lang#97994 (feat(fix): update some links in `hir.rs`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This change causes passes specified in -Cpasses= to be applied
only during pre-link optimization, not during LTO. This avoids
such passes running multiple times, which they may not be
designed for.
Fixes #97713