[llvm] r213099 - CMake: avoid a reconfigure loop from r213091
Alp Toker
alp at nuanti.com
Tue Jul 15 15:11:57 PDT 2014
Author: alp
Date: Tue Jul 15 17:11:54 2014
New Revision: 213099
URL: http://llvm.org/viewvc/llvm-project?rev=213099&view=rev
Log:
CMake: avoid a reconfigure loop from r213091
Removing the native CMakeCache.txt causes the target to get re-run needlessly
on some systems. We'll want another solution for that part of the fix.
Modified:
llvm/trunk/cmake/modules/TableGen.cmake
Modified: llvm/trunk/cmake/modules/TableGen.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/TableGen.cmake?rev=213099&r1=213098&r2=213099&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/TableGen.cmake (original)
+++ llvm/trunk/cmake/modules/TableGen.cmake Tue Jul 15 17:11:54 2014
@@ -86,8 +86,7 @@ if(CMAKE_CROSSCOMPILING)
endforeach()
add_custom_command(OUTPUT ${CX_NATIVE_TG_DIR}/CMakeCache.txt
- # Remove the old cache to avoid persisting previous flags.
- COMMAND ${CMAKE_COMMAND} -E remove ${CX_NATIVE_TG_DIR}/CMakeCache.txt
+ # TODO: Clear the old CMakeCache.txt somehow without breaking restat.
COMMAND ${CMAKE_COMMAND} -UMAKE_TOOLCHAIN_FILE -DCMAKE_BUILD_TYPE=Release
-DLLVM_BUILD_POLLY=OFF ${CX_CMAKE_ARGUMENTS}
-G "${CMAKE_GENERATOR}" ${CMAKE_SOURCE_DIR}
More information about the llvm-commits
mailing list