[compiler-rt] r279334 - [CMake] Add check-compiler-rt target for runtimes build
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 19 15:17:48 PDT 2016
Author: cbieneman
Date: Fri Aug 19 17:17:48 2016
New Revision: 279334
URL: http://llvm.org/viewvc/llvm-project?rev=279334&view=rev
Log:
[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.
Modified:
compiler-rt/trunk/test/CMakeLists.txt
Modified: compiler-rt/trunk/test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/CMakeLists.txt?rev=279334&r1=279333&r2=279334&view=diff
==============================================================================
--- compiler-rt/trunk/test/CMakeLists.txt (original)
+++ compiler-rt/trunk/test/CMakeLists.txt Fri Aug 19 17:17:48 2016
@@ -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()
More information about the llvm-commits
mailing list