From fcb771d3363730c6e38b5012cb06a5128592ca2a Mon Sep 17 00:00:00 2001 From: Tan En De Date: Thu, 28 Sep 2023 12:10:32 +0800 Subject: [PATCH] lib: Conditional compilation for "fam-wrappers" riscv doesn't need "fam-wrappers" feature at the moment. Signed-off-by: Tan En De --- src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 8c3f0d9..8e64c1c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -7,6 +7,11 @@ #![allow(non_camel_case_types)] #![allow(non_snake_case)] +#[cfg(any( + target_arch = "x86_64", + target_arch = "aarch", + target_arch = "aarch64", +))] #[macro_use] #[cfg(feature = "fam-wrappers")] extern crate vmm_sys_util;