summaryrefslogtreecommitdiff
path: root/test/dfsan
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2014-02-20 09:47:18 +0000
committerAlexey Samsonov <samsonov@google.com>2014-02-20 09:47:18 +0000
commit5f672cb6641699ed2effd9dd3e9c541dcf7a03ff (patch)
tree172f7dcf30c7e8c6c7fe431795e847e4e31c9c12 /test/dfsan
parent8305895abed75bd85e4572b65dcd8e429208ff49 (diff)
[CMake] lit tests shouldn't depend on runtimes in standalone build
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201771 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/dfsan')
-rw-r--r--test/dfsan/CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/dfsan/CMakeLists.txt b/test/dfsan/CMakeLists.txt
index 24b9ddf16..3fa1af24b 100644
--- a/test/dfsan/CMakeLists.txt
+++ b/test/dfsan/CMakeLists.txt
@@ -4,9 +4,11 @@ configure_lit_site_cfg(
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg)
-set(DFSAN_TEST_DEPS
- ${SANITIZER_COMMON_LIT_TEST_DEPS}
- dfsan)
+set(DFSAN_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
+if(NOT COMPILER_RT_STANDALONE_BUILD)
+ list(APPEND DFSAN_TEST_DEPS dfsan)
+endif()
+
add_lit_testsuite(check-dfsan "Running the DataFlowSanitizer tests"
${CMAKE_CURRENT_BINARY_DIR}
DEPENDS ${DFSAN_TEST_DEPS})