-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Fix uplifting in Assemble
step
#145557
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
base: master
Are you sure you want to change the base?
Fix uplifting in Assemble
step
#145557
Conversation
Ok I realize another error now (which is already fixed in this PR). Before #145310, bootstrap used to say "uplifting stage1 rustc to stage3", but that's clearly bogus, it was actually uplifting the stage2 compiler. But I trusted the message and implemented uplifting of stage 1 in #145310, which is wrong (because of the ABI difference). |
This comment has been minimized.
This comment has been minimized.
my condolences on the extra space |
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.
This was not obvious 😭 Thanks, r=me after comment fix.
@@ -1441,31 +1462,51 @@ fn rustc_llvm_env(builder: &Builder<'_>, cargo: &mut Cargo, target: TargetSelect | |||
} | |||
} | |||
|
|||
/// `RustcLink` copies all of the rlibs from the rustc build into the previous stage's sysroot. | |||
/// `RustcLink` copies compiler rlibs from a rustc build into a compiler sysroot. | |||
/// It works with (potentially up to) three compilers: |
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.
Remark: 😰
@rustbot author |
@bors r=jieyouxu |
In #145310, I removed this line, which adjusted the stage of the build compiler if an uplift has happened. This broke stage3+ uplifted rustc builds (#145534). I could swear I tested this in the PR, but somehow I missed it.
Instead of keeping the original returned stage, I made it more explicit by returning the actually used
build_compiler
from theRustc
step, and then use that in theAssemble
step.The changes to
RustcLink
were needed to fixui-fulldeps
, which apparently build a stage3 rustc, because I haven't fixed the test steps yet 😅Hopefully we might be able to remove
RustcLink
if the approach from #144252 will work.Should fix #145534.
r? @jieyouxu