Skip to content

Commit

Permalink
Don't build std for *-uefi targets
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasbishop committed Jul 26, 2022
1 parent 2614e43 commit 05c1a4a
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 05c1a4a

Please sign in to comment.