Prechádzať zdrojové kódy

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 rokov pred
rodič
commit
67e0908d7f
1 zmenil súbory, kde vykonal 3 pridanie a 1 odobranie
  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",