-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
CI is bootstrapping rustc too many times on cross builds #44132
Comments
From the log, the compiler is built 5 times:
|
Yeah the (3) and (5) in your list there shouldn't be necessary, although this may take some rearchitecting of the build slightly to get that working. |
Yeah, I've been meaning to work on having the build less split up into stages. Most of the things we build don't care about what stage they're associated with but it's also not always clear what stage and host triple they want to be associated with. It's going to require some thought and work, but I hope to get a plan soon. |
rustbuild: Avoid some extraneous rustc compiles on cross builds This tweaks a few locations here and there to avoid compiling rustc too many times on our cross-builders on CI. Closes #44132
I just looked at a recent build, specifically for
dist-s390x-linux
, which was taking much longer than expected! I specifically noticed that the compiler is getting bootstrapped more than I would have expected.All we should be building is a stage0 x86_64, stage1 x86_64, and stage1 s390x. Instead though we also see:
Building stage2 compiler artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Building stage0 compiler artifacts (x86_64-unknown-linux-gnu -> s390x-unknown-linux-gnu)
That's two whole extra compiler we shouldn't need!
The text was updated successfully, but these errors were encountered: