More windows build fix attempts.
authorNico Weber <nicolasweber@gmx.de>
Sun, 29 Dec 2013 05:39:01 +0000 (05:39 +0000)
committerNico Weber <nicolasweber@gmx.de>
Sun, 29 Dec 2013 05:39:01 +0000 (05:39 +0000)
The windows ninja build is now green, but msvs is still unhappy. Maybe that's
because the .def file was passed when building LTO_static, so only pass
symbol lists for shared libraries.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@198151 91177308-0d34-0410-b5e6-96231b3b80d8

cmake/modules/AddLLVM.cmake

index 681bbe899bedc8da3ded3a6bb3cd9af9bbb161c2..6bfed6999d0e1cb09308df03f42c41209ec8aeae 100644 (file)
@@ -86,10 +86,10 @@ macro(add_llvm_library name)
         PROPERTIES
         IMPORT_SUFFIX ".imp")
     endif ()
-  endif()
 
-  if (LLVM_EXPORTED_SYMBOL_FILE)
-    add_llvm_symbol_exports( ${name} ${LLVM_EXPORTED_SYMBOL_FILE} )
+    if (LLVM_EXPORTED_SYMBOL_FILE)
+      add_llvm_symbol_exports( ${name} ${LLVM_EXPORTED_SYMBOL_FILE} )
+    endif()
   endif()
 
   # Ensure that the system libraries always comes last on the