Fix Clang tooling build on Linux.
commit42d9711d127ddc3e192747ff0901c4c6c29b5eae
authordcheng <dcheng@chromium.org>
Sat, 4 Oct 2014 01:19:17 +0000 (3 18:19 -0700)
committerCommit bot <commit-bot@chromium.org>
Sat, 4 Oct 2014 01:20:02 +0000 (4 01:20 +0000)
tree3523a9840bc78f381b0f2bee01debfc3ee086333
parent9d7d7494a5d2ceedde75f88ecd0bb6866044eea0
Fix Clang tooling build on Linux.

Since the chrome clang tools are built outside the LLVM tree, direct
references to LLVM/Clang libraries don't work as expected on Linux.
This patch changes the Clang update script to create a shim directory
for triggering the Chrome tools build as part of the LLVM build. The
shim CMakeLists.txt just forwards to the real one in tools/clang. As
a bonus, this allows the CMake files in tools/clang to just use
CMAKE_SOURCE_DIR/CMAKE_BINARY_DIR instead of having to manually
specify the LLVM source/binary dirs. In addition, with this change,
it's possible to have incremental builds of tools, since the script
no longer blows away the output directory.

Review URL: https://codereview.chromium.org/615083006

Cr-Commit-Position: refs/heads/master@{#298152}
tools/clang/CMakeLists.txt
tools/clang/blink_gc_plugin/CMakeLists.txt
tools/clang/empty_string/CMakeLists.txt
tools/clang/plugins/CMakeLists.txt
tools/clang/rewrite_scoped_refptr/CMakeLists.txt
tools/clang/scripts/update.sh