mirror of
https://github.com/edera-dev/krata.git
synced 2025-08-02 21:00:55 +00:00
fix(xenplatform): use cfg attributes for returning supported platforms
This commit is contained in:
parent
e0bbeb5d64
commit
bf8a8379db
@ -56,11 +56,10 @@ impl RuntimePlatformType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn supported() -> RuntimePlatformType {
|
pub fn supported() -> RuntimePlatformType {
|
||||||
if cfg!(target_arch = "x86_64") {
|
#[cfg(target_arch = "x86_64")]
|
||||||
RuntimePlatformType::Pv
|
return RuntimePlatformType::Pv;
|
||||||
} else {
|
#[cfg(not(target_arch = "x86_64"))]
|
||||||
RuntimePlatformType::Unsupported
|
return RuntimePlatformType::Unsupported;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user