Skip to content

Commit a76f2fe

Browse files
authored
Rollup merge of #99765 - nicholasbishop:bishop-disable-uefi-std-build, r=jyn514
Don't build std for *-uefi targets #97322
2 parents 7f608e9 + 05c1a4a commit a76f2fe

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)