fix(xenclient): examples should use supported platform

This commit is contained in:
alex committed 2024-12-14 18:33:53 -05:00
1 parent 4b0f3782bd
commit e0bbeb5d64
3 files changed
+10 -7

No files matched your search

+8
View File
@@ -54,6 +54,14 @@ impl RuntimePlatformType {
RuntimePlatformType::Pv => RuntimePlatform::Pv(x86pv::X86PvPlatform::new()),
}
}
pub fn supported() -> RuntimePlatformType {
if cfg!(target_arch = "x86_64") {
RuntimePlatformType::Pv
} else {
RuntimePlatformType::Unsupported
}
}
}
#[allow(clippy::large_enum_variant)]