瀏覽代碼

Disable empty intrinsics on i686-apple-darwin

These all currently just produce empty object files
Alex Crichton 7 年之前
父節點
當前提交
1be538be1e
共有 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",