From: Alp Toker Date: Tue, 15 Jul 2014 22:11:54 +0000 (+0000) Subject: CMake: avoid a reconfigure loop from r213091 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b9aadfa67342daddf81650c3820c2eeadc832084;p=platform%2Fupstream%2Fllvm.git 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. llvm-svn: 213099 --- diff --git a/llvm/cmake/modules/TableGen.cmake b/llvm/cmake/modules/TableGen.cmake index e46b4ae..845c986 100644 --- a/llvm/cmake/modules/TableGen.cmake +++ b/llvm/cmake/modules/TableGen.cmake @@ -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}