[llvm] r198140 - Try to fix windows build more after r198136.

Nico Weber nicolasweber at gmx.de
Sat Dec 28 16:27:50 PST 2013


Author: nico
Date: Sat Dec 28 18:27:49 2013
New Revision: 198140

URL: http://llvm.org/viewvc/llvm-project?rev=198140&view=rev
Log:
Try to fix windows build more after r198136.

The command that cmd.exe is complaining about is:
cmd.exe /c cd /D C:\bb-win7\cmake-clang-i686-mingw32\build\tools\lto && cmake -E echo EXPORTS > symbol.def && type C:/bb-win7/cmake-clang-i686-mingw32/llvm-project/llvm/tools/lto/lto.exports >> symbol.def

Maybe quoting the filename helps.

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=198140&r1=198139&r2=198140&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Sat Dec 28 18:27:49 2013
@@ -37,7 +37,7 @@ function(add_llvm_symbol_exports target_
 
     add_custom_command(OUTPUT symbol.def
       COMMAND ${CMAKE_COMMAND} -E echo "EXPORTS" > symbol.def
-      COMMAND ${CAT} ${export_file} >> symbol.def
+      COMMAND ${CAT} "${export_file}" >> symbol.def
       DEPENDS ${export_file}
       VERBATIM
       COMMENT "Creating export file for ${target_name}")





More information about the llvm-commits mailing list