浏览代码

exclude windows and macos

Jorge Aparicio 8 年之前
父节点
当前提交
fdbb7883da
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/lib.rs

+ 2 - 1
src/lib.rs

@@ -4,9 +4,9 @@
 #![feature(linkage)]
 #![feature(linkage)]
 #![feature(naked_functions)]
 #![feature(naked_functions)]
 #![cfg_attr(not(test), no_std)]
 #![cfg_attr(not(test), no_std)]
+#![no_builtins]
 // TODO(rust-lang/rust#35021) uncomment when that PR lands
 // TODO(rust-lang/rust#35021) uncomment when that PR lands
 // #![feature(rustc_builtins)]
 // #![feature(rustc_builtins)]
-#![no_builtins]
 
 
 // We disable #[no_mangle] for tests so that we can verify the test results
 // We disable #[no_mangle] for tests so that we can verify the test results
 // against the native compiler-rt implementations of the builtins.
 // against the native compiler-rt implementations of the builtins.
@@ -22,6 +22,7 @@ extern crate core;
 pub mod arm;
 pub mod arm;
 
 
 pub mod udiv;
 pub mod udiv;
+#[cfg(all(not(windows), not(target_os = "macos")))]
 pub mod mem;
 pub mod mem;
 pub mod mul;
 pub mod mul;
 pub mod shift;
 pub mod shift;