summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-11-02 17:19:26 +0000
committerChris Bieneman <beanz@apple.com>2016-11-02 17:19:26 +0000
commit668fe2f92b72666014a08f4bb7eb9ac07a29b749 (patch)
tree248b213a9a52e232a1037384bd78f61c331a6454
parent5f15a30bb1aaca8858b13d8e542a4b11caccee20 (diff)
downloadbcm5719-llvm-668fe2f92b72666014a08f4bb7eb9ac07a29b749.tar.gz
bcm5719-llvm-668fe2f92b72666014a08f4bb7eb9ac07a29b749.zip
[CMake] Support LLDB_TEST_CLANG in check-lldb target(s)
This just hooks up the in-tree compiler to be optionally used when running the test suite. llvm-svn: 285839
-rw-r--r--lldb/test/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/test/CMakeLists.txt b/lldb/test/CMakeLists.txt
index 49044043edf..2da29c52d9d 100644
--- a/lldb/test/CMakeLists.txt
+++ b/lldb/test/CMakeLists.txt
@@ -53,6 +53,10 @@ set(LLDB_TEST_ARCH
# change has made its way through bots to clean up their CMake caches.
string(REPLACE "-C;${LLDB_TEST_COMPILER}" "" LLDB_TEST_USER_ARGS_New "${LLDB_TEST_USER_ARGS}")
+if(LLDB_TEST_CLANG)
+ set(LLDB_TEST_COMPILER $<TARGET_FILE:clang>)
+endif()
+
# Users can override LLDB_TEST_USER_ARGS to specify arbitrary arguments to pass to the script
set(LLDB_TEST_USER_ARGS
"${LLDB_TEST_USER_ARGS_New}"
OpenPOWER on IntegriCloud