Rollup merge of #99765 - nicholasbishop:bishop-disable-uefi-std-build, r=jyn514

Don't build std for *-uefi targets

https://github.com/rust-lang/rust/issues/97322
This commit is contained in:
Yuki Okushi 2022-07-27 11:52:57 +09:00 committed by GitHub
commit a76f2fe66e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -411,7 +411,11 @@ pub struct Target {
impl Target {
pub fn from_triple(triple: &str) -> Self {
let mut target: Self = Default::default();
if triple.contains("-none") || triple.contains("nvptx") || triple.contains("switch") {
if triple.contains("-none")
|| triple.contains("nvptx")
|| triple.contains("switch")
|| triple.contains("-uefi")
{
target.no_std = true;
}
target