diff --git a/src/main.rs b/src/main.rs index 2edd116a4..21634a274 100644 --- a/src/main.rs +++ b/src/main.rs @@ -733,6 +733,9 @@ fn main() { #[cfg(all(feature = "tdx", feature = "sev_snp"))] 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")] let _profiler = dhat::Profiler::new_heap();