diff options
-rw-r--r-- | lldb/test/CMakeLists.txt | 4 |
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}" |