[llvm-commits] [llvm] r121455 - in /llvm/trunk: cmake/modules/AddLLVM.cmake test/CMakeLists.txt tools/bugpoint-passes/CMakeLists.txt
NAKAMURA Takumi
geek4civic at gmail.com
Thu Dec 9 18:15:36 PST 2010
Author: chapuni
Date: Thu Dec 9 20:15:36 2010
New Revision: 121455
URL: http://llvm.org/viewvc/llvm-project?rev=121455&view=rev
Log:
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.
Modified:
llvm/trunk/cmake/modules/AddLLVM.cmake
llvm/trunk/test/CMakeLists.txt
llvm/trunk/tools/bugpoint-passes/CMakeLists.txt
Modified: llvm/trunk/cmake/modules/AddLLVM.cmake
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/cmake/modules/AddLLVM.cmake?rev=121455&r1=121454&r2=121455&view=diff
==============================================================================
--- llvm/trunk/cmake/modules/AddLLVM.cmake (original)
+++ llvm/trunk/cmake/modules/AddLLVM.cmake Thu Dec 9 20:15:36 2010
@@ -32,6 +32,8 @@
if( NOT LLVM_ON_UNIX OR CYGWIN )
message(STATUS "Loadable modules not supported on this platform.
${name} ignored.")
+ # Add empty "phony" target
+ add_custom_target(${name})
else()
llvm_process_sources( ALL_FILES ${ARGN} )
add_library( ${name} MODULE ${ALL_FILES} )
Modified: llvm/trunk/test/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/CMakeLists.txt?rev=121455&r1=121454&r2=121455&view=diff
==============================================================================
--- llvm/trunk/test/CMakeLists.txt (original)
+++ llvm/trunk/test/CMakeLists.txt Thu Dec 9 20:15:36 2010
@@ -81,7 +81,15 @@
--param build_mode=${RUNTIME_BUILD_MODE}
${LIT_ARGS}
${CMAKE_CURRENT_BINARY_DIR}
- DEPENDS
COMMENT "Running LLVM regression tests")
+ add_custom_target(check.deps)
+ add_dependencies(check check.deps)
+ add_dependencies(check.deps
+ UnitTests
+ BugpointPasses LLVMHello
+ llc lli llvm-ar llvm-as llvm-dis llvm-extract
+ llvm-ld llvm-link llvm-mc llvm-nm opt
+ FileCheck count not)
+
endif()
Modified: llvm/trunk/tools/bugpoint-passes/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/bugpoint-passes/CMakeLists.txt?rev=121455&r1=121454&r2=121455&view=diff
==============================================================================
--- llvm/trunk/tools/bugpoint-passes/CMakeLists.txt (original)
+++ llvm/trunk/tools/bugpoint-passes/CMakeLists.txt Thu Dec 9 20:15:36 2010
@@ -1,3 +1,5 @@
add_llvm_loadable_module( BugpointPasses
TestPasses.cpp
)
+
+add_dependencies(BugpointPasses bugpoint)
More information about the llvm-commits
mailing list