fix(xenplatform): use cfg attributes for returning supported platforms

This commit is contained in:
Alex Zenla 2024-12-14 18:46:45 -05:00
parent e0bbeb5d64
commit bf8a8379db
No known key found for this signature in database
GPG Key ID: 067B238899B51269

View File

@ -56,11 +56,10 @@ impl RuntimePlatformType {
}
pub fn supported() -> RuntimePlatformType {
if cfg!(target_arch = "x86_64") {
RuntimePlatformType::Pv
} else {
RuntimePlatformType::Unsupported
}
#[cfg(target_arch = "x86_64")]
return RuntimePlatformType::Pv;
#[cfg(not(target_arch = "x86_64"))]
return RuntimePlatformType::Unsupported;
}
}