This PR includes two main changes to Maki to make it build on more platforms in addition to the Docker image.
Change all includes to use llvm directory and not llvm-17 (llvm-17/llvm/Support/Casting.h -> llvm/Support/Casting.h)
Improve CMake build logic.
The CMake build logic improvements include:
Use find_program/find_package where possible to find libraries such as LLVM and Clang, instead of constructing a non-portable path to their CMake config file.
Simplify the logic of setting up the LIT test suite by not using LLVM's internal commands in AddLLVM for setting up LIT and using a custom target as described here.
I'm not completely sure but I could not find any examples of out-of-tree projects using LLVM LIT in this manner, and I couldn't make the improvements work using the internal commands.
Find LIT and FileCheck automatically using find_program, which can still be overriden manually (updated the documentation to explain this).
Simplify lit.site.cfg.py.in by only keeping necessary variables for the test suite.
This PR includes two main changes to Maki to make it build on more platforms in addition to the Docker image.
llvm-17/llvm/Support/Casting.h
->llvm/Support/Casting.h
)The CMake build logic improvements include:
find_program
/find_package
where possible to find libraries such as LLVM and Clang, instead of constructing a non-portable path to their CMake config file.lit.site.cfg.py.in
by only keeping necessary variables for the test suite.