This will make the following patches to migrate projects off of the
LLVM_ENABLE_PROJECTS build onto the LLVM_ENABLE_RUNTIMES build much
easier to comprehend. This patch should be a NFC since it keeps the
same set of runtimes being built by default.
Details
- Reviewers
phosek jdoerfert Ericson2314 - Group Reviewers
Restricted Project Restricted Project - Commits
- rGa8cd9396c762: [runtimes][NFC] Colocate handling of LLVM_ENABLE_PROJECTS and…
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Make llvm/CMakeLists.txt and runtimes/CMakeLists.txt consistent, and stop lying in runtimes/CMakeLists.txt (the option documentation did not reflect what we really did).
So this is in preparation for LLVM_DEFAULT_RUNTIMES in llvm/CMakeLists.txt doing a runtimes/ instead of llvm/runtimes/ build (among other changes)?
No, that doesn't change. We currently have two places where we define the set of things valid inside LLVM_ENABLE_RUNTIMES: <root>/runtimes/CMakeLists.txt and <root>/llvm/runtimes/CMakeLists.txt. This makes the two of them consistent, and also moves the one in <root>/llvm/runtimes/CMakeLists.txt to <root>/llvm/CMakeLists.txt so it can be close to the place where we define LLVM_ENABLE_PROJECTS, since the two are strongly related.
Ah right, runtimes/ and llvm/runtimes are the two ways that remain per the plan.
It is generally nice to more narrowly "scope" LLVM_DEFAULT_RUNTIMES to where it is used, but I do see the concrete benefits when you are shuffling things between the lists.