[PATCH] D99621: [CMake][Compiler-rt] Make it possible to configure standalone compiler-rt without `LLVMConfig.cmake`.
Martin Storsjö via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 30 23:41:14 PDT 2021
mstorsjo added a comment.
In D99621#2660149 <https://reviews.llvm.org/D99621#2660149>, @delcypher wrote:
> In D99621#2660131 <https://reviews.llvm.org/D99621#2660131>, @vitalybuka wrote:
>
>> On Linux "CC=gcc CXX=g++ cmake -G Ninja -DCOMPILER_RT_INCLUDE_TESTS=ON ../../llvm-project/compiler-rt" works for me without the patch
>
> @vitalybuka I suspect CMake is finding a copy of `llvm-config` to use and that the path printed out by `llvm-config --cmake-dir` points into a directory that has usable CMake files generated by an LLVM build.
It's fully possible to build compiler-rt without that, too, see lines 216-220 in CompilerRTUtils.cmake, with the "UNSUPPORTED COMPILER-RT CONFIGURATION DETECTED: llvm-config not found. Reconfigure with -DLLVM_CONFIG_PATH=path/to/llvm-config." warning. It works fine to build it despite that warning, dunno what I'm missing. I guess I can't build/run tests in that config though.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D99621/new/
https://reviews.llvm.org/D99621
More information about the llvm-commits
mailing list