This is an archive of the discontinued LLVM Phabricator instance.

[runtimes][NFC] Colocate handling of LLVM_ENABLE_PROJECTS and LLVM_ENABLE_RUNTIMES
ClosedPublic

Authored by ldionne on Aug 23 2022, 8:33 AM.

Details

Reviewers
phosek
jdoerfert
Ericson2314
Group Reviewers
Restricted Project
Restricted Project
Commits
rGa8cd9396c762: [runtimes][NFC] Colocate handling of LLVM_ENABLE_PROJECTS and…
Summary

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.

Diff Detail

Event Timeline

ldionne created this revision.Aug 23 2022, 8:33 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 23 2022, 8:33 AM
Herald added a subscriber: mgorny. · View Herald Transcript
ldionne requested review of this revision.Aug 23 2022, 8:33 AM
Herald added projects: Restricted Project, Restricted Project, Restricted Project. · View Herald Transcript
Herald added a reviewer: Restricted Project. · View Herald Transcript
Herald added a reviewer: Restricted Project. · View Herald Transcript
ldionne updated this revision to Diff 454862.Aug 23 2022, 8:49 AM

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)?

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.

Ericson2314 accepted this revision.Aug 23 2022, 4:02 PM
phosek accepted this revision.Aug 23 2022, 11:39 PM

LGTM

This revision was not accepted when it landed; it landed in state Needs Review.Aug 24 2022, 8:11 AM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.