llvm.org GIT mirror llvm / 51c06bf
Add dependency to "make check". cmake/modules/AddLLVM.cmake: Add empty "phony" target in add_llvm_loadable_module() even if loadable module were not supported. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121455 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 8 years ago
3 changed file(s) with 13 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
3131 if( NOT LLVM_ON_UNIX OR CYGWIN )
3232 message(STATUS "Loadable modules not supported on this platform.
3333 ${name} ignored.")
34 # Add empty "phony" target
35 add_custom_target(${name})
3436 else()
3537 llvm_process_sources( ALL_FILES ${ARGN} )
3638 add_library( ${name} MODULE ${ALL_FILES} )
8080 --param build_mode=${RUNTIME_BUILD_MODE}
8181 ${LIT_ARGS}
8282 ${CMAKE_CURRENT_BINARY_DIR}
83 DEPENDS
8483 COMMENT "Running LLVM regression tests")
8584
85 add_custom_target(check.deps)
86 add_dependencies(check check.deps)
87 add_dependencies(check.deps
88 UnitTests
89 BugpointPasses LLVMHello
90 llc lli llvm-ar llvm-as llvm-dis llvm-extract
91 llvm-ld llvm-link llvm-mc llvm-nm opt
92 FileCheck count not)
93
8694 endif()
0 add_llvm_loadable_module( BugpointPasses
11 TestPasses.cpp
22 )
3
4 add_dependencies(BugpointPasses bugpoint)