Revert "Generate targets for each lit suite."
authorChris Bieneman <beanz@apple.com>
Wed, 18 Mar 2015 21:53:29 +0000 (21:53 +0000)
committerChris Bieneman <beanz@apple.com>
Wed, 18 Mar 2015 21:53:29 +0000 (21:53 +0000)
This change broke Polly. I'll track down the failure when I have a chance and re-apply the change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232676 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt
cmake/modules/AddLLVM.cmake

index 63c285b3420fc5300c658aac6fc055aac105293b..b91ba15f5534a6264a233ed4576d34a4ab2dccd2 100644 (file)
@@ -641,11 +641,6 @@ if( LLVM_INCLUDE_TESTS )
     DEPENDS ${LLVM_LIT_DEPENDS}
     ARGS ${LLVM_LIT_EXTRA_ARGS}
     )
     DEPENDS ${LLVM_LIT_DEPENDS}
     ARGS ${LLVM_LIT_EXTRA_ARGS}
     )
-
-  add_lit_testsuites(LLVM ${CMAKE_SOURCE_DIR}/test
-  PARAMS ${LLVM_LIT_PARAMS}
-  DEPENDS ${LLVM_LIT_DEPENDS}
-  ARGS ${LLVM_LIT_EXTRA_ARGS})
 endif()
 
 if (LLVM_INCLUDE_DOCS)
 endif()
 
 if (LLVM_INCLUDE_DOCS)
index 165b8c7cbe301d91d955f24cc2f6b1e49f6819a6..83897935e27d4edab4b3849f97cbc03152415774 100644 (file)
@@ -786,26 +786,3 @@ function(add_lit_testsuite target comment)
     ARGS ${ARG_ARGS}
     )
 endfunction()
     ARGS ${ARG_ARGS}
     )
 endfunction()
-
-function(add_lit_testsuites project directory)
-  if (NOT CMAKE_CONFIGURATION_TYPES)
-    parse_arguments(ARG "PARAMS;DEPENDS;ARGS" "" ${ARGN})
-    file(GLOB_RECURSE litCfg ${directory}/lit*.cfg)
-    foreach(f ${litCfg})
-      get_filename_component(dir ${f} DIRECTORY)
-      string(REPLACE ${directory} "" name_slash ${dir})
-      if (name_slash)
-        string(REPLACE "/" "-" name_slash ${name_slash})
-        string(REPLACE "\\" "-" name_dashes ${name_slash})
-        string(TOLOWER "${project}${name_dashes}" name_var)
-        set(lit_args ${ARG_ARGS} ${dir})
-        add_lit_target("check-${name_var}" "Running lit suite ${dir}"
-          ${dir}
-          PARAMS ${ARG_PARAMS}
-          DEPENDS ${ARG_DEPENDS}
-          ARGS ${lit_args}
-        )
-      endif()
-    endforeach()
-  endif()
-endfunction()