This is an archive of the discontinued LLVM Phabricator instance.

[libcxx][CMake] Add install path variable to allow overriding the destination
ClosedPublic

Authored by phosek on Jun 1 2017, 12:48 AM.

Diff Detail

Repository
rL LLVM

Event Timeline

phosek created this revision.Jun 1 2017, 12:48 AM
EricWF accepted this revision.Jun 1 2017, 12:54 AM

Please add an entry for this option in the BuildingLibcxx.rst file, under the CMake options heading.

This revision is now accepted and ready to land.Jun 1 2017, 12:54 AM
EricWF requested changes to this revision.Jun 1 2017, 12:56 AM

Oh, shoot nevermind abouth the LGTM. This needs changes to the testsuite as well, since it needs to be taught where to find libc++.

Also isn't there a CMake PREFIX variable we can set to change this globally?

This revision now requires changes to proceed.Jun 1 2017, 12:56 AM
srhines added a subscriber: srhines.Jun 1 2017, 6:28 AM

There's CMAKE_PREFIX_PATH, the problem is that this is a global setting which works fine when building libc++ as standalone or as part of LLVM only for a single target. However, with D32816 we would like to add a support for building runtimes for multiple targets and hence we need a way to customize the install path for individual targets.

phosek updated this revision to Diff 101372.Jun 4 2017, 11:52 PM
phosek edited edge metadata.

I have updated the documentation. I've checked the test suite but I don't think there's anything that needs to change there as this option is only used during installation.

@EricWF we don't do any installed testing, only testing from the build dir, right?

phosek updated this revision to Diff 103673.Jun 22 2017, 5:29 PM

@beanz does this make sense?

phosek updated this revision to Diff 104519.Jun 28 2017, 3:09 PM
pirama added a subscriber: pirama.Jul 6 2017, 3:51 PM
phosek updated this revision to Diff 105691.Jul 7 2017, 2:10 PM
beanz accepted this revision.Jul 10 2017, 9:21 AM

This LGTM.

This revision was automatically updated to reflect the committed changes.