Skip to content

Commit 3b1a4ee

Browse files
author
Chris Bieneman
committed
[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
1 parent 5f25462 commit 3b1a4ee

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

clang/runtime/CMakeLists.txt

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,15 @@ if(LLVM_BUILD_EXTERNAL_COMPILER_RT AND EXISTS ${COMPILER_RT_SRC_ROOT}/)
143143
DEPENDS compiler-rt-build ${COMPILER_RT_TEST_DEPENDENCIES}
144144
WORKING_DIRECTORY ${BINARY_DIR}
145145
VERBATIM USES_TERMINAL)
146-
set_property(GLOBAL APPEND PROPERTY LLVM_LIT_DEPENDS check-compiler-rt)
146+
147+
# Add special target to run all compiler-rt test suites.
148+
get_ext_project_build_command(run_check_compiler_rt compiler-rt-test-depends)
149+
add_custom_target(compiler-rt-test-depends
150+
COMMAND ${run_check_compiler_rt}
151+
DEPENDS compiler-rt-build ${COMPILER_RT_TEST_DEPENDENCIES}
152+
WORKING_DIRECTORY ${BINARY_DIR}
153+
VERBATIM USES_TERMINAL)
154+
set_property(GLOBAL APPEND PROPERTY LLVM_ADDITIONAL_TEST_DEPENDS compiler-rt-test-depends)
155+
set_property(GLOBAL APPEND PROPERTY LLVM_ADDITIONAL_TEST_TARGETS check-compiler-rt)
147156
endif()
148157
endif()

0 commit comments

Comments
 (0)