Proper way to build LLVM+Clang

I couldn’t find a decent guide to build llvm+clang and all the other projects after moving to llvm-project. I am checking with you to know how you are building llvm+clang+projects

Thank you!

You’ll need to specify to CMake -DLLVM_ENABLE_PROJECTS a list of subprojects (the top-level directories) to build. E.g. to only build Clang, say -DLLVM_ENABLE_PROJECTS=clang, to also build Clang-Tools-Extra (i.e. Clang-Query and Clang-Tidy), -DLLVM_ENABLE_PROJECTS=“clang;clang-tools-extra”.

Everything else remained the same in the workflow.

Aditya Atluri via cfe-dev <> ezt írta (időpont: 2020. júl. 3., P, 18:04):

Thank you!