Rollup merge of #99765 - nicholasbishop:bishop-disable-uefi-std-build, r=jyn514
Don't build std for *-uefi targets https://github.com/rust-lang/rust/issues/97322
This commit is contained in:
commit
a76f2fe66e
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue