diff --git a/Cargo.toml b/Cargo.toml index 182aac5..e4a7133 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -38,7 +38,7 @@ default-features = false byteorder = { version = "1", default-features = false } fdt = { git = "https://gitlab.redox-os.org/thomhuds/fdt.git", default-features = false } -[target.'cfg(target_arch = "x86_64")'.dependencies] +[target.'cfg(any(target_arch = "x86", target_arch = "x86_64"))'.dependencies] raw-cpuid = "10.2.0" x86 = { version = "0.47.0", default-features = false } diff --git a/src/lib.rs b/src/lib.rs index 18646e0..0a28c7c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -60,7 +60,7 @@ #![feature(thread_local)] #![no_std] -#[cfg(target_arch = "x86_64")] +#[cfg(any(target_arch = "x86", target_arch = "x86_64"))] pub extern crate x86; #[macro_use]