-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Thin out rustc_codegen_llvm dependencies. #47849
Labels
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
eddyb
added
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
labels
Jan 29, 2018
should be possible... things left to do after #46882
|
eddyb
changed the title
Thin out rustc_trans dependencies.
Thin out rustc_codegen_llvm dependencies.
Nov 4, 2018
bors
added a commit
that referenced
this issue
Jun 3, 2019
Remove _all_ codegen dependencies on `rustc_mir` 🎉 ~This code is pretty self-contained. It has no references to the rest of `rustc_mir`. Moving it to its own crate means that almost all of the references from `rustc_codegen_*` to `rustc_mir` are instead moved to `rustc_monomorphize`, which should help improve compile times for the compiler a bit...~ With the help of eddyb and oli-obk, all of the dependencies of `librustc_codegen_*` on `librustc_mir` have been removed: - dependencies on `rustc_mir::monomorphize` were moved to `rustc::mir::mono` - `rustc_mir::const_eval::const_field` is made into a query. - `rustc_mir::interpret::type_name` is made into a query. This should help reduce compile time when working on `rustc_mir` 🕐 cc #47849 r? @eddyb
Is it small enough? rust/src/librustc_codegen_llvm/Cargo.toml Lines 13 to 18 in 38cd948
|
Cargo.toml is not the source of truth anymore -- sysroot dependencies will become relevant after #61727, and those aren't listed in any one place. A number of crates are currently being pulled from the sysroot. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-cleanup
Category: PRs that clean code up or issues documenting cleanup.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I'm working on
rustc_mir
andrustc_codegen_llvm
gets rebuilt even though it barely uses anything.cc @oli-obk @michaelwoerister Can we do this long-term given #46882 and any other plans?
The text was updated successfully, but these errors were encountered: