Skip to content

Commit

Permalink
Rollup merge of #99765 - nicholasbishop:bishop-disable-uefi-std-build…
Browse files Browse the repository at this point in the history
…, r=jyn514

Don't build std for *-uefi targets

#97322
  • Loading branch information
JohnTitor authored Jul 27, 2022
2 parents 7f608e9 + 05c1a4a commit a76f2fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bootstrap/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a76f2fe

Please sign in to comment.