From 33086672fa30ef627cbb69896b79ad6c936c2f2f Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 16 Jul 2018 16:37:35 -0700 Subject: [PATCH] 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. --- library/compiler-builtins/build.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/library/compiler-builtins/build.rs b/library/compiler-builtins/build.rs index a7091d541f4c..cdcbfe24cd73 100644 --- a/library/compiler-builtins/build.rs +++ b/library/compiler-builtins/build.rs @@ -415,11 +415,14 @@ mod c { "floatsitf.c", "floatunditf.c", "floatunsitf.c", - "multc3.c", "trunctfdf2.c", "trunctfsf2.c", ], ); + + if target_os != "windows" { + sources.extend(&["multc3.c"]); + } } // Remove the assembly implementations that won't compile for the target