diff --git a/compiler-rt/lib/builtins/CMakeLists.txt b/compiler-rt/lib/builtins/CMakeLists.txt --- a/compiler-rt/lib/builtins/CMakeLists.txt +++ b/compiler-rt/lib/builtins/CMakeLists.txt @@ -310,17 +310,27 @@ ${x86_ARCH_SOURCES} x86_64/floatdidf.c x86_64/floatdisf.c - x86_64/floatundidf.S - x86_64/floatundisf.S ) + if (NOT WIN32) + set(x86_64_SOURCES + ${x86_64_SOURCES} + x86_64/floatundidf.S + x86_64/floatundisf.S + ) + endif() if (NOT ANDROID) set(x86_64_SOURCES ${x86_64_SOURCES} ${x86_80_BIT_SOURCES} x86_64/floatdixf.c - x86_64/floatundixf.S ) + if (NOT WIN32) + set(x86_64_SOURCES + ${x86_64_SOURCES} + x86_64/floatundixf.S + ) + endif() endif() # Darwin x86_64 Haswell