-
Notifications
You must be signed in to change notification settings - Fork 13.3k
libstd gets rebuilt unconditionally #33990
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
Comments
Ah sorry, I believe I have misunderstood! The rebuilding as part of the second make command is actually the stage 1 set of libraries. These are the ones which are produced by the stage0 artifacts. That is, the chain of dependencies is:
The stage1 compiler has changed (as part of librustc_mir changing), so its dependants need to be rebuilt as well. These include the stage1 libraries (e.g. libcore + libstd). Does that make sense? I'm gonna close this as it's intended behavior, but I'll of course answer any questions you may have! |
Ah ok I understand, thanks for clarifying! As mentioned above I'd like to build just rustc with some changes I made. Which make target corresponds to that and where will the binary be? |
If all you want is the compiler itself, then this should suffice:
There may be a more ergonomic way to type that, although I don't recall off the top of my head... Note though that this compiler won't be too too useful as it won't have a standard library to link against. |
That does what it should! Thank you so much! 😁 And about that libstd thing: Could the |
Wow I had no idea that option even still existed... I think that's from an era long since passed and no longer actually does anything! |
I just checked, Thank you very much, I was fighting with this for days! |
Glad I could help! |
add documentation on howto build just rustc without libstd to the build system I searched for days until I found this, maybe this helps other poor souls 😂 for reference #33990
add documentation on howto build just rustc without libstd to the build system I searched for days until I found this, maybe this helps other poor souls 😂 for reference #33990
add documentation on howto build just rustc without libstd to the build system I searched for days until I found this, maybe this helps other poor souls 😂 for reference #33990
…richton add documentation on howto build just rustc without libstd to the build system I searched for days until I found this, maybe this helps other poor souls 😂 for reference rust-lang#33990
For reference, the reddit thread, where the discussion started.
My goal
I want to hack on rustc. So I want to make a change, recompile as fast as possible and test the new binary with some input.rs.
The Problem
make
rebuilds libstd even if it's unchanged. This takes ages and can't be skipped.How to reproduce
I'm on Fedora Linux 23, fully updated.
I started with a clone of the rust repo, in which I already compiled rustc more than once (so LLVM was already built etc.).
output
output
output
As you can see in the output of the second make command libstd, libcore etc. get rebuilt.
The text was updated successfully, but these errors were encountered: