MaskRay added a comment. In D84987#2186639 <https://reviews.llvm.org/D84987#2186639>, @mgorny wrote:
> In D84987#2186113 <https://reviews.llvm.org/D84987#2186113>, @MaskRay wrote: > >> I am not familiar with the standalone clang build. Can you share a command? > > You install LLVM first, then run `cmake <llvm-project-path>/clang` and build > it. Can you elaborate? The so-called "standalone build" isn't documented anywhere. My llvm-config is in `/tmp/RelA/bin/llvm-config`. I run `PATH=/tmp/RelA/bin:$PATH cmake -GNinja -H/path/to//clang -BTest`, it fails: -- Performing Test CXX_SUPPORTS_NO_NESTED_ANON_TYPES_FLAG - Failed CMake Error at /tmp/RelA/lib/cmake/llvm/AddLLVM.cmake:823 (add_executable): add_executable cannot create target "clang-tblgen" because an imported target with the same name already exists. Call Stack (most recent call first): /tmp/RelA/lib/cmake/llvm/TableGen.cmake:148 (add_llvm_executable) utils/TableGen/CMakeLists.txt:3 (add_tablegen) CMake Error at /tmp/RelA/lib/cmake/llvm/LLVM-Config.cmake:105 (target_link_libraries): Cannot specify link libraries for target "clang-tblgen" which is not built by this project. Call Stack (most recent call first): /tmp/RelA/lib/cmake/llvm/LLVM-Config.cmake:93 (explicit_llvm_config) /tmp/RelA/lib/cmake/llvm/AddLLVM.cmake:867 (llvm_config) /tmp/RelA/lib/cmake/llvm/TableGen.cmake:148 (add_llvm_executable) utils/TableGen/CMakeLists.txt:3 (add_tablegen) -- Configuring incomplete, errors occurred! See also "/tmp/c/Test/CMakeFiles/CMakeOutput.log". See also "/tmp/c/Test/CMakeFiles/CMakeError.log". CHANGES SINCE LAST ACTION https://reviews.llvm.org/D84987/new/ https://reviews.llvm.org/D84987 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits