mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
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
@ -411,7 +411,11 @@ pub struct Target {
|
|||||||
impl Target {
|
impl Target {
|
||||||
pub fn from_triple(triple: &str) -> Self {
|
pub fn from_triple(triple: &str) -> Self {
|
||||||
let mut target: Self = Default::default();
|
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.no_std = true;
|
||||||
}
|
}
|
||||||
target
|
target
|
||||||
|
Loading…
Reference in New Issue
Block a user