1
Fork 0

Don't build std for *-uefi targets

https://github.com/rust-lang/rust/issues/97322
This commit is contained in:
Nicholas Bishop 2022-07-26 11:50:54 -04:00
parent 2614e437f5
commit 05c1a4ab4d

View file

@ -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