Update the CMake build to use the LLVM CMake Config package rather than invoking llvm-config to find the parameters. Users can specify -DLLVM_DIR= to CMake to indicate where the LLVM build is (as opposed to -DLLVM_CONFIG=. For uses where the system provides LLVM or LLVM's build output is in the CMake search path, no parameters are necessary. This removes use of llvm-config which is helpful on the path to removing llvm-config from LLVM.
Diff Detail
Diff Detail
- Repository
- rC Clang
Event Timeline
Comment Actions
Will overriding LLVM_BUILD_MAIN_SRC_DIR work? Gentoo relies on being able to provide sources in another directory since all builds are done in isolated temporary directories.