This is an archive of the discontinued LLVM Phabricator instance.

[libc++] Remove C++11 work-arounds in src.
ClosedPublic

Authored by Mordante on Feb 6 2021, 4:54 AM.

Details

Reviewers
ldionne
Group Reviewers
Restricted Project
Commits
rG2544060e7180: [libc++] Remove C++11 work-arounds in src.
Summary

Building libcxx requires at least C++17 so remove the old work-arounds.

Diff Detail

Event Timeline

Mordante requested review of this revision.Feb 6 2021, 4:54 AM
Mordante created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptFeb 6 2021, 4:54 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
Mordante updated this revision to Diff 321943.Feb 6 2021, 8:54 AM

Partial revert, since one modification is still required for C++11.

Isn't it strange that a filesystem test builds the sources with -std=c++11? By source here I mean something under src/, precisely libcxx/src/filesystem/filesystem_common.h.
It seems like a bad separation between the code and the tests.

Isn't it strange that a filesystem test builds the sources with -std=c++11? By source here I mean something under src/, precisely libcxx/src/filesystem/filesystem_common.h.
It seems like a bad separation between the code and the tests.

I tend to agree, however this test is a libcxx test and not a std test. So I assume that's the reason it's testing the internals.

Mordante updated this revision to Diff 321957.Feb 6 2021, 12:27 PM

Remove the C++11 comparibility again in filesystem_common.h. Tested with _LIBCPP_CONSTEXPR_AFTER_CXX11 which seems to work locally.

ldionne accepted this revision.Feb 9 2021, 8:55 AM

Thanks!

This revision is now accepted and ready to land.Feb 9 2021, 8:55 AM
This revision was automatically updated to reflect the committed changes.