From b9aadfa67342daddf81650c3820c2eeadc832084 Mon Sep 17 00:00:00 2001 From: Alp Toker Date: Tue, 15 Jul 2014 22:11:54 +0000 Subject: [PATCH] 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 --- llvm/cmake/modules/TableGen.cmake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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} -- 2.7.4