From 1be538be1e8a2f1aad14aba316695371d7e3405d Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Sun, 17 Sep 2017 15:24:36 -0700 Subject: [PATCH] Disable empty intrinsics on i686-apple-darwin These all currently just produce empty object files --- build.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 74e506e..18f32ab 100644 --- a/build.rs +++ b/build.rs @@ -4112,7 +4112,9 @@ mod c { ]); } - if target_os != "ios" { + // On iOS and 32-bit OSX these are all just empty intrinsics, no need to + // include them. + if target_os != "ios" && (target_vendor != "apple" || target_arch != "x86") { sources.extend( &[ "absvti2.c",