From 8db4596f734acf249f7c39d6a5dea9d40f481643 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Thu, 28 Jul 2022 08:22:26 -0600 Subject: [PATCH] Use x86 crate on i686 as well --- Cargo.toml | 2 +- src/lib.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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]