Ver Fonte

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

MemoryShore há 6 meses atrás
pai
commit
7c654bcccc
1 ficheiros alterados com 4 adições e 1 exclusões
  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;