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

Set llvm configs when building lld #98877

Merged
merged 1 commit into from
Aug 4, 2022
Merged

Set llvm configs when building lld #98877

merged 1 commit into from
Aug 4, 2022

Conversation

topjohnwu
Copy link
Contributor

Several LLVM configs applied when building LLVM should also be applied when building LLD.

For example, without the fix, setting both llvm.thin-lto=true and rust.lld=true when building on Linux will fail, since we need to manually override the compiler and linker to clang, but those will not be used when building LLD, causing link errors.

r? @jyn514

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 4, 2022
@jyn514 jyn514 added A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 4, 2022
@jyn514
Copy link
Member

jyn514 commented Jul 31, 2022

@topjohnwu let me know when you have time to look at this again - I left a couple comments.

@topjohnwu
Copy link
Contributor Author

@jyn514 thanks for the reminder, I'll check this out soon

@topjohnwu topjohnwu requested a review from jyn514 August 2, 2022 23:49
@jyn514
Copy link
Member

jyn514 commented Aug 3, 2022

Thanks!

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Aug 3, 2022

📌 Commit 6f87b75 has been approved by jyn514

It is now in the queue for this repository.

@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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Aug 3, 2022
Dylan-DPC added a commit to Dylan-DPC/rust that referenced this pull request Aug 3, 2022
Set llvm configs when building lld

Several LLVM configs applied when building LLVM should also be applied when building LLD.

For example, without the fix, setting both `llvm.thin-lto=true` and `rust.lld=true` when building on Linux will fail, since we need to manually override the compiler and linker to `clang`, but those will not be used when building LLD, causing link errors.

r? `@jyn514`
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Aug 3, 2022
Set llvm configs when building lld

Several LLVM configs applied when building LLVM should also be applied when building LLD.

For example, without the fix, setting both `llvm.thin-lto=true` and `rust.lld=true` when building on Linux will fail, since we need to manually override the compiler and linker to `clang`, but those will not be used when building LLD, causing link errors.

r? ``@jyn514``
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 4, 2022
…iaskrgr

Rollup of 9 pull requests

Successful merges:

 - rust-lang#98877 (Set llvm configs when building lld)
 - rust-lang#100068 (Fix backwards-compatibility check for tests with `+whole-archive`)
 - rust-lang#100083 (rustdoc: use a more compact encoding for source-files.js)
 - rust-lang#100102 (Fix typo)
 - rust-lang#100104 (Remove more Clean trait implementations)
 - rust-lang#100105 (Add regression test for rust-lang#90871)
 - rust-lang#100107 (fix trailing whitespace in error message)
 - rust-lang#100111 (Provide suggestion on missing `let` in binding statement)
 - rust-lang#100119 (FilesTimes support does not build for ESP-IDF)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit 6a987f5 into rust-lang:master Aug 4, 2022
@rustbot rustbot added this to the 1.64.0 milestone Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants