From fdbb7883da44d443c6461dc0f5baf91dd93cd8ee Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Sat, 13 Aug 2016 12:16:52 -0500 Subject: [PATCH] exclude windows and macos --- src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index a802d1b..2d1c839 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,9 +4,9 @@ #![feature(linkage)] #![feature(naked_functions)] #![cfg_attr(not(test), no_std)] +#![no_builtins] // TODO(rust-lang/rust#35021) uncomment when that PR lands // #![feature(rustc_builtins)] -#![no_builtins] // We disable #[no_mangle] for tests so that we can verify the test results // against the native compiler-rt implementations of the builtins. @@ -22,6 +22,7 @@ extern crate core; pub mod arm; pub mod udiv; +#[cfg(all(not(windows), not(target_os = "macos")))] pub mod mem; pub mod mul; pub mod shift;