瀏覽代碼

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

MemoryShore 1 年之前
父節點
當前提交
7c654bcccc
共有 1 個文件被更改,包括 4 次插入1 次删除
  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;