This is an archive of the discontinued LLVM Phabricator instance.

Partial revert of "Use std::foo_t rather than std::foo in LLVM." in googlebench
ClosedPublic

Authored by jroelofs on Apr 29 2021, 3:46 PM.

Details

Summary

Since googlebench builds as c++11, the change there is incorrect and breaks the
googlebench build when the STL implementation is strict about std::enable_if_t
not being available in lesser c++ versions.

partial revert of: 1bd6123b781120c9190b9ba58b900cdcb718cdd1 (https://reviews.llvm.org/D74384)

Diff Detail

Event Timeline

jroelofs created this revision.Apr 29 2021, 3:46 PM
jroelofs requested review of this revision.Apr 29 2021, 3:46 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 29 2021, 3:46 PM

How about just using C++14 for utils/benchmark/ ?

How about just using C++14 for utils/benchmark/ ?

That seemed like a bigger change, with more potential fallout re: windows bots that I didn't want to sign up for ;)

How about just using C++14 for utils/benchmark/ ?

That seemed like a bigger change, with more potential fallout re: windows bots that I didn't want to sign up for ;)

llvm/CMakeLists.txt sets CMAKE_CXX_STANDARD to 14.

llvm/CMakeLists.txt sets CMAKE_CXX_STANDARD to 14.

As "prior art", https://reviews.llvm.org/D93794 also backed out a c++14 feature from this component.

Seems prudent to keep our diff with upstream googlebench as small as possible to make it easier to update in the future.

MaskRay accepted this revision.May 1 2021, 2:04 PM

llvm/CMakeLists.txt sets CMAKE_CXX_STANDARD to 14.

As "prior art", https://reviews.llvm.org/D93794 also backed out a c++14 feature from this component.

Seems prudent to keep our diff with upstream googlebench as small as possible to make it easier to update in the future.

OK, did not know this is a local difference. If that is the case, LG.

This revision is now accepted and ready to land.May 1 2021, 2:04 PM
This revision was landed with ongoing or failed builds.May 3 2021, 7:50 AM
This revision was automatically updated to reflect the committed changes.