summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Labath <labath@google.com>2017-03-01 10:08:44 +0000
committerPavel Labath <labath@google.com>2017-03-01 10:08:44 +0000
commit197b65c7b8238a095b1ec4875b1ceca8bff3ce9a (patch)
tree474dab1eafe9639c922ada25a5b1af1d12ba9596
parent5e336903bee9f21420c5b03d9c5552afd14376b9 (diff)
downloadbcm5719-llvm-197b65c7b8238a095b1ec4875b1ceca8bff3ce9a.tar.gz
bcm5719-llvm-197b65c7b8238a095b1ec4875b1ceca8bff3ce9a.zip
test: pass correct objcopy and ar paths to the test runner
Summary: The test runner has code to autodetect this, but it's not very smart -- in particular, it fails in the case where we build the test executables with the just-built clang. Since cmake already has the knowledge about the right toolchain, we can just have it pass the appropriate flags to the test runner. This also removes the "temporary" cache-scrubbing hack added a couple months ago. Reviewers: zturner, beanz Subscribers: mgorny, lldb-commits Differential Revision: https://reviews.llvm.org/D30453 llvm-svn: 296593
-rw-r--r--lldb/test/CMakeLists.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/lldb/test/CMakeLists.txt b/lldb/test/CMakeLists.txt
index 2ff5a9ca051..c0e77a646e6 100644
--- a/lldb/test/CMakeLists.txt
+++ b/lldb/test/CMakeLists.txt
@@ -43,11 +43,6 @@ set(LLDB_TEST_ARCH
${LLDB_DEFAULT_TEST_ARCH}
CACHE STRING "Specify the architecture to run LLDB tests as (x86|x64). Determines whether tests are compiled with -m32 or -m64")
-# Scrub LLDB_TEST_COMPILER out of the CMake caches
-# TODO: remove the replace lines and the FORCE parameter in a few days once the
-# 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()
@@ -97,6 +92,11 @@ if(LLDB_BUILD_FRAMEWORK)
list(APPEND LLDB_TEST_COMMON_ARGS --framework $<TARGET_FILE_DIR:liblldb>)
endif()
+if (NOT ${CMAKE_SYSTEM_NAME} MATCHES "Windows|Darwin")
+ list(APPEND LLDB_TEST_COMMON_ARGS
+ --env ARCHIVER=${CMAKE_AR} --env OBJCOPY=${CMAKE_OBJCOPY})
+endif()
+
add_python_test_target(check-lldb-single
${LLDB_SOURCE_DIR}/test/dotest.py
"--no-multiprocess;${LLDB_TEST_COMMON_ARGS};${LLDB_TEST_USER_ARGS}"
OpenPOWER on IntegriCloud