blob: 205124c98612395c1ed5e249a3ba294292f65fb0 [file] [log] [blame]
From 1e367f792bd729c41007b1d02d26fe4739c8b45e Mon Sep 17 00:00:00 2001
From: Nicholas Bishop <nicholasbishop@google.com>
Date: Wed, 3 Aug 2022 14:35:35 -0400
Subject: [PATCH] Don't build std for *-uefi targets
This is a backport of https://github.com/rust-lang/rust/pull/99765
BUG=b:202164480
---
src/bootstrap/config.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/bootstrap/config.rs b/src/bootstrap/config.rs
index d6f77fe6cd6..4a9cb2d91b2 100644
--- a/src/bootstrap/config.rs
+++ b/src/bootstrap/config.rs
@@ -311,7 +311,7 @@ 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") {
+ if triple.contains("-none") || triple.contains("nvptx") || triple.contains("-uefi") {
target.no_std = true;
}
target
--
2.37.1.455.g008518b4e5-goog