[llvm-dev] [RFC] [CMake] Removing support for LLVM_TOOL_ CMake cache variables (original) (raw)

Dan Liew via llvm-dev llvm-dev at lists.llvm.org
Tue Feb 5 01:59:13 PST 2019


Hi,

In our CMake build system there are currently two ways of specifying which LLVM sub projects to build by setting CMake cache variables.

Having two different ways of specifying the same thing is problematic because from the CMake perspective because we can't detect which way the user actually wants to use.

Since r353148 if LLVM_ENABLE_PROJECTS is set by the user then that is used to determine which projects are built and any user specified value for the LLVM_TOOL_<PROJECT>_BUILD variables get overridden. LLVM_ENABLE_PROJECTS currently only works with the new mono-repo layout (projects outside of the LLVM source tree) which basically means that:

This is a bit of a mess and I'd like to propose we switch to only using LLVM_ENABLE_PROJECTS and remove support for LLVM_TOOL_<PROJECT>_BUILD variables.

I see two ways of doing this:

I'd prefer Graceful because it's less work and I actually have old scripts that rely on setting LLVM_TOOL_<PROJECT>_BUILD variables. Others might too.

Thoughts?

Thanks, Dan.



More information about the llvm-dev mailing list