소스 검색

添加目标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;