Skip to content

Commit

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

Don't build std for *-uefi targets

rust-lang#97322
  • Loading branch information
matthiaskrgr authored Jul 26, 2022
2 parents 9035bd4 + 05c1a4a commit 09eac4e
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 09eac4e

Please sign in to comment.