This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Sync TEST_HAS_TIMESPEC_GET and _LIBCPP_HAS_TIMESPEC_GET on FreeBSD
ClosedPublic

Authored by arichardson on Jan 8 2021, 3:45 AM.

Details

Summary

Commit 5e416ba943b7c737deb8eca62756f7b4fa925845 (D71522) updated the
__config header but didn't change test_macros.h.
This fixes libcxx/language.support/has_timespec_get.compile.pass.cpp on
FreeBSD12/13.

Diff Detail

Event Timeline

arichardson created this revision.Jan 8 2021, 3:45 AM
arichardson requested review of this revision.Jan 8 2021, 3:45 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 8 2021, 3:45 AM
Herald added 1 blocking reviewer(s): Restricted Project. · View Herald Transcript
dim accepted this revision.Jan 8 2021, 4:38 AM

LGTM (this mirrors what is in libcxx/include/__config btw)

ldionne accepted this revision.Jan 8 2021, 8:03 AM
ldionne added a subscriber: ldionne.

This duplication of several things in test_macros.h and __config is a bit annoying, but LGTM. At the same time, if we want to keep considering the test suite as a self standing thing, the duplication has to remain in some form.

This revision is now accepted and ready to land.Jan 8 2021, 8:03 AM