This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Proper fix for libc++'s modulemap after D68480
ClosedPublic

Authored by ldionne on Feb 24 2020, 12:51 PM.

Details

Summary

In libc++, we normally #ifdef out header content instead of #erroring
out when the Standard in use is insufficient for the requirements of
the header.

Diff Detail

Event Timeline

ldionne created this revision.Feb 24 2020, 12:51 PM

@EricWF I'm unsure about this change -- I think we might want to keep the requires in the modulemap but also get rid of the #error behavior.

mclow.lists accepted this revision.Feb 24 2020, 12:55 PM

This looks fine to me.

This revision is now accepted and ready to land.Feb 24 2020, 12:55 PM

@EricWF I'm unsure about this change -- I think we might want to keep the requires in the modulemap but also get rid of the #error behavior.

I would agree with that.

LGTM.

ldionne updated this revision to Diff 246326.Feb 24 2020, 3:16 PM

Add a test and don't touch the modulemap

LGTM, thanks for the test!

This revision was automatically updated to reflect the committed changes.