build: fix building for Windows after SVN r287465
authorSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 1 Dec 2016 22:00:54 +0000 (22:00 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Thu, 1 Dec 2016 22:00:54 +0000 (22:00 +0000)
The previous change for enabling MinGW did not preserve the Win32 check and
added the EABI specific routines to a Windows build which does not use the EABI
routines.  Correct the conditional check for that.

llvm-svn: 288422

compiler-rt/lib/builtins/CMakeLists.txt

index ff023da..b33786a 100644 (file)
@@ -395,7 +395,7 @@ if(MINGW)
       udivmodsi4.c
       udivsi3.c
       umoddi3.c)
-else(MINGW)
+elseif(NOT WIN32)
   # TODO the EABI sources should only be added to EABI targets
   set(arm_SOURCES
     ${arm_SOURCES}