From: Chris Bieneman Date: Fri, 19 Aug 2016 22:17:48 +0000 (+0000) Subject: [CMake] Add check-compiler-rt target for runtimes build X-Git-Tag: llvmorg-4.0.0-rc1~11859 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5968c3ac1f7828ffa98ca03dc0eaf1bfd08fd13e;p=platform%2Fupstream%2Fllvm.git [CMake] Add check-compiler-rt target for runtimes build Durning standalone builds (which includes runtimes builds) we want to create a target named check-compiler-rt. Additionally we also create check-all if it doesn't already exist as a convienence target that depends on check-compiler-rt. This allows us to generate a single check target that invokes lit for all test suites in the runtimes projects, while avoiding name collision of check-all and not breaking existing workflows. llvm-svn: 279334 --- diff --git a/compiler-rt/test/CMakeLists.txt b/compiler-rt/test/CMakeLists.txt index 3316e00..b910122 100644 --- a/compiler-rt/test/CMakeLists.txt +++ b/compiler-rt/test/CMakeLists.txt @@ -89,8 +89,12 @@ if(COMPILER_RT_STANDALONE_BUILD) # introduce a rule to run to run all of them. get_property(LLVM_LIT_TESTSUITES GLOBAL PROPERTY LLVM_LIT_TESTSUITES) get_property(LLVM_LIT_DEPENDS GLOBAL PROPERTY LLVM_LIT_DEPENDS) - add_lit_target(check-all + add_lit_target(check-compiler-rt "Running all regression tests" ${LLVM_LIT_TESTSUITES} DEPENDS ${LLVM_LIT_DEPENDS}) + if(NOT TARGET check-all) + add_custom_target(check-all) + endif() + add_dependencies(check-all check-compiler-rt) endif()