浏览代码

Auto merge of #195 - alexcrichton:32-darwin-empty, r=alexcrichton

Disable empty intrinsics on i686-apple-darwin

These all currently just produce empty object files
bors 7 年之前
父节点
当前提交
67e0908d7f
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      build.rs

+ 3 - 1
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",