-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Fix requires_lto targets needing lto set in cargo #149624
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
base: main
Are you sure you want to change the base?
Conversation
|
Some changes occurred in src/doc/rustc/src/platform-support cc @Noratrieb |
This comment has been minimized.
This comment has been minimized.
|
Hm, not entirely sure of the implications. |
|
The CI/tidy complain seems like a false-positive, the test uses |
Yes, I probably forgot to extend the tidy exception to |
This comment has been minimized.
This comment has been minimized.
…lathar Skip tidy target-specific check for `run-make-cargo` too I forgot to change this when implementing the run-make fission. Noticed in rust-lang#149624 (comment).
Rollup merge of #150237 - jieyouxu:tidy-run-make-cargo, r=Zalathar Skip tidy target-specific check for `run-make-cargo` too I forgot to change this when implementing the run-make fission. Noticed in #149624 (comment).
|
☔ The latest upstream changes (presumably #150240) made this pull request unmergeable. Please resolve the merge conflicts. |
Targets that set `requires_lto = true` were not actually using lto when compiling with cargo by default. They needed an extra `lto = true` in `Cargo.toml` to work. Fix this by letting lto take precedence over the `embed_bitcode` flag when lto is required by a target. If both these flags would be supplied by the user, an error is generated. However, this did not happen when lto was requested by the target instead of the user.
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
Rebased to fix conflicts with #150237, no other changes |
Targets that set
requires_lto = truewere not actually using lto when compiling with cargo by default. They needed an extralto = trueinCargo.tomlto work.Fix this by letting lto take precedence over the
embed_bitcodeflag when lto is required by a target.If both these flags would be supplied by the user, an error is generated. However, this did not happen when lto was requested by the target instead of the user.
Fixes #148514
Tracking issue: #135024