From 23b78795840aadc327fa9b74ef83c2a28dbaa0ab Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Thu, 19 Dec 2013 17:11:08 +0000 Subject: [PATCH] Revert r197682, "[CMake] Introduce LIT in add_lit_target." git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197703 91177308-0d34-0410-b5e6-96231b3b80d8 --- cmake/modules/AddLLVM.cmake | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake index 9bfb5ac3c5c..c506d30fed0 100644 --- a/cmake/modules/AddLLVM.cmake +++ b/cmake/modules/AddLLVM.cmake @@ -322,18 +322,15 @@ endfunction() # A raw function to create a lit target. This is used to implement the testuite # management functions. function(add_lit_target target comment) - parse_arguments(ARG "LIT;PARAMS;DEPENDS;ARGS" "" ${ARGN}) + parse_arguments(ARG "PARAMS;DEPENDS;ARGS" "" ${ARGN}) set(LIT_ARGS "${ARG_ARGS} ${LLVM_LIT_ARGS}") separate_arguments(LIT_ARGS) if (NOT CMAKE_CFG_INTDIR STREQUAL ".") list(APPEND LIT_ARGS --param build_mode=${CMAKE_CFG_INTDIR}) endif () - if(NOT EXISTS ${ARG_LIT}) - set(ARG_LIT ${LLVM_MAIN_SRC_DIR}/utils/lit/lit.py) - endif() set(LIT_COMMAND ${PYTHON_EXECUTABLE} - ${ARG_LIT} + ${LLVM_MAIN_SRC_DIR}/utils/lit/lit.py ${LIT_ARGS} ) foreach(param ${ARG_PARAMS})