Page MenuHomePhabricator

[libc++] Use the stdlib=<LIB> Lit feature instead of use_system_cxx_lib
AcceptedPublic

Authored by ldionne on Sat, Mar 18, 1:31 PM.

Details

Reviewers
Mordante
MaskRay
EricWF
Group Reviewers
Restricted Project
Restricted Project
Restricted Project
Summary

The use_system_cxx_lib Lit feature was only used for back-deployment
testing. However, one immense hole in that setup was that we didn't
have a proper way to test Apple's own libc++ outside of back-deployment,
which was embodied by the fact that we needed to define _LIBCPP_DISABLE_AVAILABILITY
when testing (see change in libcxx/utils/libcxx/test/params.py).

This led to the apple-system testing configuration not checking for
availability markup, which is obviously quite bad since the library
we ship actually has availability markup.

Using stdlib=<VENDOR>-libc++ instead to encode back-deployment restrictions
on tests is simpler and it makes it possible to naturally support tests
such as availability markup checking even in the tip-of-trunk Apple-libc++
configuration.

Diff Detail

Event Timeline

ldionne created this revision.Sat, Mar 18, 1:31 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptSat, Mar 18, 1:31 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
ldionne requested review of this revision.Sat, Mar 18, 1:31 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptSat, Mar 18, 1:31 PM
Herald added a reviewer: Restricted Project. · View Herald Transcript
Herald added a reviewer: Restricted Project. · View Herald Transcript
ldionne updated this revision to Diff 506317.Sat, Mar 18, 1:36 PM

Trigger CI with parent diff.

Mordante accepted this revision.Sun, Mar 19, 11:26 AM
Mordante added a subscriber: Mordante.

Thanks, I really like this patch! LGTM when the CI passes,

libcxx/utils/ci/apple-install-libcxx.sh
114

Is there a LLVM or rdar bug report we can link to?

libcxx/utils/libcxx/test/features.py
339

I see this modifies the same line again, but this time I agree with a separate patch.

MaskRay accepted this revision.Mon, Mar 20, 9:58 AM
EricWF accepted this revision.Mon, Mar 20, 11:47 AM
This revision is now accepted and ready to land.Mon, Mar 20, 11:47 AM
ldionne updated this revision to Diff 508983.Tue, Mar 28, 6:19 AM
ldionne marked 2 inline comments as done.

Add reference to bug

libcxx/utils/ci/apple-install-libcxx.sh
114

https://llvm.org/PR61762 I'll add it in the comment.