[llvm] r198153 - Another windows build fix attempt.

Nico Weber nicolasweber at gmx.de
Sat Dec 28 22:12:40 PST 2013


Author: nico
Date: Sun Dec 29 00:12:40 2013
New Revision: 198153

URL: http://llvm.org/viewvc/llvm-project?rev=198153&view=rev
Log:
Another windows build fix attempt.

Inspired by http://public.kitware.com/pipermail/cmake-developers/2012-March/003768.html

Modified:
    llvm/trunk/cmake/modules/AddLLVM.cmake

Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=198153&r1=198152&r2=198153&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Sun Dec 29 00:12:40 2013
@@ -45,7 +45,7 @@ function(add_llvm_symbol_exports target_
       VERBATIM
       COMMENT "Creating export file for ${target_name}")
     set_property(TARGET ${target_name} APPEND_STRING PROPERTY
-                 LINK_FLAGS " ${CMAKE_CURRENT_BINARY_DIR}/symbol.def")
+                 LINK_FLAGS "/DEF:${CMAKE_CURRENT_BINARY_DIR}/symbol.def")
   endif()
 
   add_custom_target(${target_name}_exports DEPENDS ${native_export_file})





More information about the llvm-commits mailing list