mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-25 17:31:16 +00:00
misc: Add check for sev_snp and target_arch
Feature 'sev_snp' can only be enabled when the target_arch is 'x86_64' Signed-off-by: Jinank Jain <jinankjain@microsoft.com>
This commit is contained in:
parent
9b151d06ca
commit
42477207e2
@ -733,6 +733,9 @@ fn main() {
|
|||||||
#[cfg(all(feature = "tdx", feature = "sev_snp"))]
|
#[cfg(all(feature = "tdx", feature = "sev_snp"))]
|
||||||
compile_error!("Feature 'tdx' and 'sev_snp' are mutually exclusive.");
|
compile_error!("Feature 'tdx' and 'sev_snp' are mutually exclusive.");
|
||||||
|
|
||||||
|
#[cfg(all(feature = "sev_snp", not(target_arch = "x86_64")))]
|
||||||
|
compile_error!("Feature 'sev_snp' needs target 'x86_64'");
|
||||||
|
|
||||||
#[cfg(feature = "dhat-heap")]
|
#[cfg(feature = "dhat-heap")]
|
||||||
let _profiler = dhat::Profiler::new_heap();
|
let _profiler = dhat::Profiler::new_heap();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user