This is an archive of the discontinued LLVM Phabricator instance.

[libc] Add libc archive dependency on the header target
AbandonedPublic

Authored by phosek on Aug 25 2023, 2:38 PM.

Details

Summary

This ensures that libc headers are built and installed together with
the libc archive in the full build.

Diff Detail

Event Timeline

phosek created this revision.Aug 25 2023, 2:38 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 25 2023, 2:38 PM
phosek requested review of this revision.Aug 25 2023, 2:38 PM

There may be a cleaner/more principled way, suggestions are welcome.

The idea was that install-libc is that one target that pulls everything into the installation. Can you give more detail about the behavior you are observing?

libc/lib/CMakeLists.txt
37

Does this really ensure installation of headers along with the archive?

phosek abandoned this revision.Aug 28 2023, 10:53 PM

The idea was that install-libc is that one target that pulls everything into the installation. Can you give more detail about the behavior you are observing?

I was seeing missing headers when doing a full build, but I can no longer reproduce this so it's possible that some of my other CMake changes addressed the actual issue.