llvm.org GIT mirror llvm / 03b003b
Use llvm-lit if LLVM source tree is unavailable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@209308 91177308-0d34-0410-b5e6-96231b3b80d8 Greg Fitzgerald 5 years ago
1 changed file(s) with 6 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
631631 if (NOT CMAKE_CFG_INTDIR STREQUAL ".")
632632 list(APPEND LIT_ARGS --param build_mode=${CMAKE_CFG_INTDIR})
633633 endif ()
634 set(LIT_COMMAND
635 ${PYTHON_EXECUTABLE}
636 ${LLVM_MAIN_SRC_DIR}/utils/lit/lit.py
637 ${LIT_ARGS}
638 )
634 if (LLVM_MAIN_SRC_DIR)
635 set (LIT_COMMAND ${PYTHON_EXECUTABLE} ${LLVM_MAIN_SRC_DIR}/utils/lit/lit.py)
636 else()
637 find_program(LIT_COMMAND llvm-lit)
638 endif ()
639 list(APPEND LIT_COMMAND ${LIT_ARGS})
639640 foreach(param ${ARG_PARAMS})
640641 list(APPEND LIT_COMMAND --param ${param})
641642 endforeach()