This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Don't try to provide source_location on AppleClang 1403
ClosedPublic

Authored by ldionne on Mar 24 2023, 11:43 AM.

Details

Summary

AppleClang 1403 has some bugs that prevent std::source_location from
working properly on it. Consequently, we XFAILed the unit test for
source_location with that compiler. However, we should also avoid
advertising that the feature is supported on that compiler, otherwise
our feature-test macros lie. This was noticed to break Boost.Asio
when building with a recent libc++ and AppleClang 14.0.3.

rdar://106863087

Diff Detail

Event Timeline

ldionne created this revision.Mar 24 2023, 11:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 24 2023, 11:43 AM
Herald added a subscriber: arichardson. · View Herald Transcript
ldionne requested review of this revision.Mar 24 2023, 11:43 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 24 2023, 11:43 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
ldionne updated this revision to Diff 508183.Mar 24 2023, 11:47 AM

Generate files.

ldionne updated this revision to Diff 508333.Mar 25 2023, 12:42 PM

Rebase for CI

ldionne updated this revision to Diff 508715.Mar 27 2023, 9:54 AM

Fix formatting.

ldionne accepted this revision.Mar 28 2023, 6:52 AM
This revision is now accepted and ready to land.Mar 28 2023, 6:52 AM