Modify the add_lit_target function to use lit.py from LLVM_MAIN_SRC_DIR only when one does exist there, and otherwise fall back to looking for system install of llvm-lit. This is based on a similar conditional in clang's CMakeLists.txt, and makes it possible to run clang's tests when built separately from LLVM with no access to the original sources.
Diff Detail
Diff Detail