mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-27 13:30:05 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213099 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7929c13df0
commit
427c5cb4f9
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user