-
Notifications
You must be signed in to change notification settings - Fork 13.9k
reduce compiler Assemble complexity
#134437
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 comment has been minimized.
This comment has been minimized.
70e8695 to
12aa509
Compare
|
Some changes occurred in src/tools/cargo cc @ehuss |
12aa509 to
a9fe0cd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, one question regarding the compiler stage, but otherwise LGTM.
I tested the changes locally on x86_64-unknown-linux-gnu with rust.lld = true up to stage 2 rustc and ran the resulting rustc with -vV, didn't seem to explode, so AFAICT this is fine.
`compile::Assemble` is already complicated by its nature (as it handles core internals like recursive building logic, etc.) and also handles half of `LldWrapper` tool logic for no good reason since it should be done in the build step directly. This change moves it there to reduce complexity of `compile::Assemble` logic. Signed-off-by: onur-ozkan <[email protected]>
a9fe0cd to
bb1a90f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, you can r=me after PR CI is green.
|
@bors r=jieyouxu |
Rollup of 7 pull requests Successful merges: - rust-lang#133702 (Variants::Single: do not use invalid VariantIdx for uninhabited enums) - rust-lang#134427 (ci: remove duplicate task definition) - rust-lang#134432 (Fix intra doc links not generated inside footnote definitions) - rust-lang#134437 (reduce compiler `Assemble` complexity) - rust-lang#134474 (Forbid overwriting types in typeck) - rust-lang#134477 (move lint_unused_mut into sub-fn) - rust-lang#134491 (Some destructor/drop related tweaks) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of rust-lang#134437 - onur-ozkan:improve-compiler-build, r=jieyouxu reduce compiler `Assemble` complexity `compile::Assemble` is already complicated by its nature (as it handles core internals like recursive building logic, etc.) and also handles half of `LldWrapper` tool logic for no good reason since it should be done in the build step directly. This change moves it there to reduce complexity of `compile::Assemble` logic.
compile::Assembleis already complicated by its nature (as it handles core internals like recursive building logic, etc.) and also handles half ofLldWrappertool logic for no good reason since it should be done in the build step directly.This change moves it there to reduce complexity of
compile::Assemblelogic.