Don't build std for switch
This commit is contained in:
parent
4bc8549cb3
commit
bee373c699
@ -411,7 +411,7 @@ 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") {
|
||||
if triple.contains("-none") || triple.contains("nvptx") || triple.contains("switch") {
|
||||
target.no_std = true;
|
||||
}
|
||||
target
|
||||
|
Loading…
x
Reference in New Issue
Block a user