From e8d856d01348809713e56ee4c5f0db3382aca366 Mon Sep 17 00:00:00 2001 From: shibedrill Date: Tue, 18 Feb 2025 22:26:10 -0500 Subject: [PATCH] Fixed build support for non-x86 arches --- Cargo.toml | 2 ++ src/arch/mod.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/Cargo.toml b/Cargo.toml index 3d07adc..83f40e1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,6 +9,8 @@ lazy_static = { version = "1.5.0", features = ["spin_no_std"] } limine = "0.3.1" spin = "0.9.8" talc = "4.4.2" + +[target.'cfg(target_arch = "x86_64")'.dependencies] vga = "0.2.9" [[bin]] diff --git a/src/arch/mod.rs b/src/arch/mod.rs index 80b1c69..776fad9 100644 --- a/src/arch/mod.rs +++ b/src/arch/mod.rs @@ -1,3 +1,4 @@ #[cfg(target_arch = "x86_64")] pub mod x86_64; +#[cfg(target_arch = "x86_64")] pub use x86_64 as current; \ No newline at end of file