From 05c1a4ab4dde6a43a327a25c7b27eb2437378ef1 Mon Sep 17 00:00:00 2001 From: Nicholas Bishop Date: Tue, 26 Jul 2022 11:50:54 -0400 Subject: [PATCH] Don't build std for *-uefi targets https://github.com/rust-lang/rust/issues/97322 --- src/bootstrap/config.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bootstrap/config.rs b/src/bootstrap/config.rs index ea0f78e2a6be9..c7212ad2c2166 100644 --- a/src/bootstrap/config.rs +++ b/src/bootstrap/config.rs @@ -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