aaron.ballman added a comment. In D88833#3223055 <https://reviews.llvm.org/D88833#3223055>, @estan wrote:
> @aaron.ballman A bit off topic, but I followed > https://github.com/llvm/llvm-project/blob/main/README.md#getting-the-source-code-and-building-llvm > to build and install llvm-project main branch as follows: > > git clone https://github.com/llvm/llvm-project.git > cd llvm-project > cmake -S llvm -B build -G Ninja -DLLVM_ENABLE_PROJECTS=clang-tools-extra > -DCMAKE_INSTALL_PREFIX=/home/estan/orexplore/llvm-project-inst > cmake --build build > cmake --install build > > But I did not get any clang-tidy in the build or installation directory. The > CMake output said "clang-tools-extra project is enabled". Any tips on where I > went wrong? That looks generally correct, though I think you may need to add clang to the list of LLVM projects to enable (clang-tidy relies on clang and I've never tried building clang-tools-extra without clang before). Also, you shouldn't need to do the install step for local development (so my own setup doesn't set the install prefix). FWIW, I do my development on Windows using Visual Studio and its integrated CMake support, so my CMake settings are going to be a bit different than yours anyway. FWIW, I use `-DLLVM_TARGETS_TO_BUILD="X86" -DLLVM_ENABLE_IDE=ON -DLLVM_ENABLE_PROJECTS="clang;clang-tools-extra" -DLLVM_PARALLEL_COMPILE_JOBS=112 -DLLVM_PARALLEL_LINK_JOBS=16` Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D88833/new/ https://reviews.llvm.org/D88833 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits