mgorny added a comment. So what should be done? Should the cmake functions be modified to look for both llvm-lit and lit? I'm talking of add_lit_target() that is using: find_program(LIT_COMMAND llvm-lit) when LLVM_MAIN_SRC_DIR is unset. https://reviews.llvm.org/D23743