Skip to content
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

Propagate lto=off harder #9182

Merged
merged 1 commit into from
Feb 18, 2021
Merged

Propagate lto=off harder #9182

merged 1 commit into from
Feb 18, 2021

Conversation

alexcrichton
Copy link
Member

This commit fixes an issue with LTO calculation for various units when
lto=off is specified in the profile. This ensures now that lto=off
is passed to all transitive dependencies as well to disable thin-local
LTO. As an added bonus this also passed embed-bitcode=no whenever
lto=off is specified since we know we won't be using bitcode anyway.

Closes #9171

This commit fixes an issue with LTO calculation for various units when
`lto=off` is specified in the profile. This ensures now that `lto=off`
is passed to all transitive dependencies as well to disable thin-local
LTO. As an added bonus this also passed `embed-bitcode=no` whenever
`lto=off` is specified since we know we won't be using bitcode anyway.

Closes rust-lang#9171
@rust-highfive
Copy link

r? @ehuss

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 17, 2021
@ehuss
Copy link
Contributor

ehuss commented Feb 18, 2021

Thanks! The solution is simpler than I was suspecting.

@bors r+

@bors
Copy link
Collaborator

bors commented Feb 18, 2021

📌 Commit 1e05dbb has been approved by ehuss

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 18, 2021
@bors
Copy link
Collaborator

bors commented Feb 18, 2021

⌛ Testing commit 1e05dbb with merge bf5a5d5...

@bors
Copy link
Collaborator

bors commented Feb 18, 2021

☀️ Test successful - checks-actions
Approved by: ehuss
Pushing bf5a5d5 to master...

@bors bors merged commit bf5a5d5 into rust-lang:master Feb 18, 2021
Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Feb 19, 2021
Update cargo

8 commits in ab64d1393b5b77c66b6534ef5023a1b89ee7bf64..bf5a5d5e5d3ae842a63bfce6d070dfd438cf6070
2021-02-10 00:19:10 +0000 to 2021-02-18 15:49:14 +0000
- Propagate `lto=off` harder (rust-lang/cargo#9182)
- refactor: make deref intentions more straightforward (rust-lang/cargo#9183)
- Update link for no_std attribute. (rust-lang/cargo#9174)
- Remove mention of --message-format taking multiple values (rust-lang/cargo#9173)
- Emit warning on env variable case mismatch (rust-lang/cargo#9169)
- Implement Rustdoc versioning checks (rust-lang/cargo#8640)
- Bump to 0.53.0, update changelog (rust-lang/cargo#9168)
- Prevent testsuite from loading config out of sandbox. (rust-lang/cargo#9164)
@ehuss ehuss added this to the 1.52.0 milestone Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Thin local LTO enabled for dependencies regardless of lto setting
4 participants