diff options
author | Chris Bieneman <beanz@apple.com> | 2016-09-01 18:28:49 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2016-09-01 18:28:49 +0000 |
commit | 3b1a4ee7b13ab6d69d52461b9b51b4a018398dd3 (patch) | |
tree | 0cbde24603b1d796ec55323d6267160f290ade14 /clang/runtime | |
parent | 5f2546273dd16292bee8d6382925c32676932d7a (diff) | |
download | llvm-3b1a4ee7b13ab6d69d52461b9b51b4a018398dd3.tar.gz |
[CMake] Properly connecting Compiler-RT check and test-depends
This correctly connects compiler-rt-test-depends to test-depends and
check-compiler-rt to check-all.
Based on LLVM r280392, and Compiler-RT r280393.
llvm-svn: 280394
Diffstat (limited to 'clang/runtime')
-rw-r--r-- | clang/runtime/CMakeLists.txt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/clang/runtime/CMakeLists.txt b/clang/runtime/CMakeLists.txt index 814857f49c4d..1f0b2d9c2710 100644 --- a/clang/runtime/CMakeLists.txt +++ b/clang/runtime/CMakeLists.txt @@ -143,6 +143,15 @@ if(LLVM_BUILD_EXTERNAL_COMPILER_RT AND EXISTS ${COMPILER_RT_SRC_ROOT}/) DEPENDS compiler-rt-build ${COMPILER_RT_TEST_DEPENDENCIES} WORKING_DIRECTORY ${BINARY_DIR} VERBATIM USES_TERMINAL) - set_property(GLOBAL APPEND PROPERTY LLVM_LIT_DEPENDS check-compiler-rt) + + # Add special target to run all compiler-rt test suites. + get_ext_project_build_command(run_check_compiler_rt compiler-rt-test-depends) + add_custom_target(compiler-rt-test-depends + COMMAND ${run_check_compiler_rt} + DEPENDS compiler-rt-build ${COMPILER_RT_TEST_DEPENDENCIES} + WORKING_DIRECTORY ${BINARY_DIR} + VERBATIM USES_TERMINAL) + set_property(GLOBAL APPEND PROPERTY LLVM_ADDITIONAL_TEST_DEPENDS compiler-rt-test-depends) + set_property(GLOBAL APPEND PROPERTY LLVM_ADDITIONAL_TEST_TARGETS check-compiler-rt) endif() endif() |