Browse Source

Don't build multc3 on AArch64 MSVC

Apparently it doesn't compile due to an odd compiler error! This intrinsic has
to do with complex arithmetic anyway and we shouldn't need it.
Alex Crichton 6 years ago
parent
commit
5d370bb352
1 changed files with 4 additions and 1 deletions
  1. 4 1
      build.rs

+ 4 - 1
build.rs

@@ -415,11 +415,14 @@ mod c {
                     "floatsitf.c",
                     "floatsitf.c",
                     "floatunditf.c",
                     "floatunditf.c",
                     "floatunsitf.c",
                     "floatunsitf.c",
-                    "multc3.c",
                     "trunctfdf2.c",
                     "trunctfdf2.c",
                     "trunctfsf2.c",
                     "trunctfsf2.c",
                 ],
                 ],
             );
             );
+
+            if target_os != "windows" {
+                sources.extend(&["multc3.c"]);
+            }
         }
         }
 
 
         // Remove the assembly implementations that won't compile for the target
         // Remove the assembly implementations that won't compile for the target