diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2015-08-22 04:53:52 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2015-08-22 04:53:52 +0000 |
commit | 04e2da526f44e6b32ac7d730eed34b4944d1a211 (patch) | |
tree | ea9b00d15dc30a588fe21470ec01afcc5fe72786 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | c7b675f48c4322e4b577390ad71741a5e2a54078 (diff) | |
download | bcm5719-llvm-04e2da526f44e6b32ac7d730eed34b4944d1a211.tar.gz bcm5719-llvm-04e2da526f44e6b32ac7d730eed34b4944d1a211.zip |
[CMake] Make LLVM_EXTERNAL_*_SOURCE_DIR consistent against older buildsites.
If corresponding in-tree subdirectory exists, just ignore LLVM_EXTERNAL* stuff.
Otherwise, set LLVM_TOOL_*_BUILD ON/OFF properly according to LLVM_EXTERNAL_*.
This makes easier to walk among old revisions *without* deleteing CMakeCache.txt.
Before r242059, LLVM_EXTERNAL_* was working like;
if(EXISTS ${*_SOURCE_DIR}/CMakeLists.txt)
set(*_BUILD ON CACHE)
if(*_BUILD is ON)
add_subdirectory(*_SOURCE_DIR)
endif()
endif()
llvm-svn: 245782
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions