Page MenuHomePhabricator

[CMake] Support separate installation of InstrProfData.inc
AcceptedPublic

Authored by phosek on Jul 10 2019, 2:42 PM.

Details

Summary

This header fragment is useful on its own for any consumer that wants
to use custom instruction profile runtime with the LLVM instrumentation.
The concrete use case is in Fuchsia's kernel where we want to use
instruction profile instrumentation, but we cannot use the compiler-rt
runtime because it's not designed for use in the kernel environment.
This change allows installing this header as a separate distribution
component without having to install all LLVM headers.

Diff Detail

Repository
rL LLVM

Event Timeline

phosek created this revision.Jul 10 2019, 2:42 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 10 2019, 2:42 PM
smeenai added inline comments.Jul 10 2019, 3:28 PM
llvm/include/llvm/ProfileData/CMakeLists.txt
7

You can use add_llvm_install_targets right?

smeenai accepted this revision.Jul 10 2019, 3:29 PM

LGTM with the comment; the use case makes sense to me.

This revision is now accepted and ready to land.Jul 10 2019, 3:29 PM