Consider a setup without a system-wide installation of lit.
Instead you pass the path to lit like this:
cmake ... -DLLVM_EXTERNAL_LIT=<PATH_TO_LIT_BINARY> ...
Then you will run into this error:
ninja: error: unknown target 'check-lld'
I have a buildbot builder that fails with this message. Here's the
passage that triggers this error:
By using LLVM_EXTERNAL_LIT instead of LLVM_LIT we fix this problem.
See
here for
a description:
Both the LLVM_ROOT and LLVM_EXTERNAL_LIT options are required to do stand-alone builds for all sub-projects. Additional required options for each sub-project can be found in the table below.