Don't build std for *-uefi targets
https://github.com/rust-lang/rust/issues/97322
This commit is contained in:
parent
2614e437f5
commit
05c1a4ab4d
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
Add a link
Reference in a new issue