-
-
Notifications
You must be signed in to change notification settings - Fork 168
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
Install UEFI targets via rustup #555
Conversation
f2103f7
to
f1dd177
Compare
Looks like there are some linker errors in the i686 target, I'll look into that. |
very nice |
Just a quick note that I'm working on the issues blocking i686 here: rust-lang/rust#104326 |
f23b7be
to
495d6fb
Compare
Marking ready for review -- the linker issue with |
@@ -1,3 +1,3 @@ | |||
[toolchain] | |||
channel = "nightly" | |||
components = ["rust-src"] |
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 looks so much better now. Very nice :)
// If the target is not installed, use build-std. Keep this | ||
// around until our minimum-supported nightly version is at | ||
// least 2022-11-10. | ||
if !is_target_installed(target.as_triple())? { |
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.
can you create a follow-up ticket please to remove this eventually?
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.
I went ahead and made a PR: #585
We can merge that after Feb 22, 2023.
495d6fb
to
8640cc3
Compare
LGTM! |
The UEFI targets are now tier 2, so we don't need to use build-std anymore.
If the target being built is installed via rustup, skip adding the build-std arguments. We still need build-std for our current minimum-supported nightly CI, but for nightly-2022-11-10 and later the UEFI targets are tier 2 and can be installed via rustup.
These targets are now available via rustup as of nightly-2022-11-10.
As of nightly-2022-11-10 the UEFI targets are tier 2 and available via rustup, so build-std isn't needed anymore.
8640cc3
to
7b8a188
Compare
As of
nightly-2022-11-10
the UEFI targets are tier 2 and available via rustup. That means we can switch to building withoutbuild-std
.In order to continue testing the older nightly,
cargo xtask build
checks if the targets are installed and switches back tobuild-std
if not.Fixes #504
Checklist