[llvm] r198148 - The same we do every commit, Pinky: Try to fix the windows build (after r198136).

Nico Weber nicolasweber at gmx.de
Sat Dec 28 20:05:24 PST 2013


Author: nico
Date: Sat Dec 28 22:05:23 2013
New Revision: 198148

URL: http://llvm.org/viewvc/llvm-project?rev=198148&view=rev
Log:
The same we do every commit, Pinky: Try to fix the windows build (after r198136).

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=198148&r1=198147&r2=198148&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Sat Dec 28 22:05:23 2013
@@ -35,9 +35,12 @@ function(add_llvm_symbol_exports target_
       set(CAT "cat")
     endif()
 
+    # Using ${export_file} in add_custom_command directly confuses cmd.exe.
+    file(TO_NATIVE_PATH ${export_file} export_file_backslashes)
+
     add_custom_command(OUTPUT symbol.def
       COMMAND ${CMAKE_COMMAND} -E echo "EXPORTS" > symbol.def
-      COMMAND ${CAT} "\"${export_file}\"" >> symbol.def
+      COMMAND ${CAT} ${export_file_backslashes} >> symbol.def
       DEPENDS ${export_file}
       VERBATIM
       COMMENT "Creating export file for ${target_name}")





More information about the llvm-commits mailing list