This is an archive of the discontinued LLVM Phabricator instance.

[runtimes] Add the ability to include out of tree runtimes
Needs ReviewPublic

Authored by ldionne on Aug 24 2023, 11:40 AM.

Details

Reviewers
phosek
Group Reviewers
Restricted Project
Restricted Project
Restricted Project
Summary

LLVM_EXTERNAL_RUNTIMES is similar to LLVM_EXTERNAL_PROJECTS: the
source directory for the external runtime is resolved through the
LLVM_EXTERNAL_<proj>_SOURCE_DIR variable.

This makes it easier to experiment with additional runtimes locally
and provides a relatively low maintenance hook for downstreams to
add their own runtimes outside of the LLVM tree.

Diff Detail

Event Timeline

ldionne created this revision.Aug 24 2023, 11:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 24 2023, 11:40 AM
ldionne requested review of this revision.Aug 24 2023, 11:40 AM
Herald added projects: Restricted Project, Restricted Project, Restricted Project, Restricted Project. · View Herald TranscriptAug 24 2023, 11:40 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
Herald added a reviewer: Restricted Project. · View Herald Transcript
Herald added a reviewer: Restricted Project. · View Herald Transcript
Mordante added inline comments.
llvm/docs/CMake.rst
634

IMO There should be a way to pass additional arguments to CMake for the external libraries, including documentation how to do that.