Skip to content

Commit 05c1a4a

Browse files
Don't build std for *-uefi targets
#97322
1 parent 2614e43 commit 05c1a4a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/bootstrap/config.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,11 @@ pub struct Target {
411411
impl Target {
412412
pub fn from_triple(triple: &str) -> Self {
413413
let mut target: Self = Default::default();
414-
if triple.contains("-none") || triple.contains("nvptx") || triple.contains("switch") {
414+
if triple.contains("-none")
415+
|| triple.contains("nvptx")
416+
|| triple.contains("switch")
417+
|| triple.contains("-uefi")
418+
{
415419
target.no_std = true;
416420
}
417421
target

0 commit comments

Comments
 (0)