This is an archive of the discontinued LLVM Phabricator instance.

[lldb] Support specifying a custom libcxx for the API tests
ClosedPublic

Authored by JDevlieghere on Aug 19 2022, 2:57 PM.

Details

Summary

D129166 was an attempt to ensure that by default we use the libc++ from the build dir instead of potentially picking up the system libc++. While I was reviewing D132257, I realized that part of the patch (i.e. the change to Makefile.rules) got lost. As I was reviving the code, I realized that it would be relatively straightforward to merge my change with what Felipe was trying to achieve. Instead of telling dotest to use the libc++ form the build dir and computing the path to the current build's libc++ (as was the case in D129166), we can specify the libc++ include and library dir to dotest (as was the case in D132257) and have lit compute the path to the libc++ in the build dir, achieving both objectives.

Diff Detail

Event Timeline

JDevlieghere created this revision.Aug 19 2022, 2:57 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 19 2022, 2:57 PM
JDevlieghere requested review of this revision.Aug 19 2022, 2:57 PM
fdeazeve accepted this revision.Aug 19 2022, 3:01 PM

Thanks for merging the two patches! This LGTM!

This revision is now accepted and ready to land.Aug 19 2022, 3:01 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 19 2022, 3:21 PM