Parcourir la source

添加目标linux的条件编译项 (#21)

MemoryShore il y a 1 an
Parent
commit
7c654bcccc
1 fichiers modifiés avec 4 ajouts et 1 suppressions
  1. 4 1
      src/lib.rs

+ 4 - 1
src/lib.rs

@@ -68,6 +68,9 @@ pub use platform::*;
 
 pub(crate) mod macros;
 
-#[cfg(all(any(target_os = "dragonos"), target_arch = "x86_64"))]
+#[cfg(all(
+    any(target_os = "dragonos", target_os = "linux"),
+    target_arch = "x86_64"
+))]
 #[path = "platform/x86_64/mod.rs"]
 pub mod platform;