Try to fix windows build more after r198136.
authorNico Weber <nicolasweber@gmx.de>
Sun, 29 Dec 2013 00:27:49 +0000 (00:27 +0000)
committerNico Weber <nicolasweber@gmx.de>
Sun, 29 Dec 2013 00:27:49 +0000 (00:27 +0000)
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.

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

cmake/modules/AddLLVM.cmake

index ea06f359b0372111ffead8b54dd26027ba3190d4..ad740dda7283e87c6d543f7686c1f4932f3e0ab2 100644 (file)
@@ -37,7 +37,7 @@ function(add_llvm_symbol_exports target_name export_file)
 
     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}")