This is an archive of the discontinued LLVM Phabricator instance.

[libc][test] Remove dependency on sstream in algorithm_test.cpp
ClosedPublic

Authored by gchatelet on Jun 29 2022, 5:29 AM.

Details

Summary

Bots have been failing in full build mode because ´#include <sstream>´ would pull pthread which is not possible when code is compiled with ´-freestanding´.

Diff Detail

Event Timeline

gchatelet created this revision.Jun 29 2022, 5:29 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 29 2022, 5:29 AM
gchatelet requested review of this revision.Jun 29 2022, 5:29 AM
courbet accepted this revision.Jun 29 2022, 6:40 AM
courbet added inline comments.
libc/test/src/string/memory_utils/algorithm_test.cpp
11

Is this fine ?

115

maybe std::string to avoid the zero-termination handling ?

This revision is now accepted and ready to land.Jun 29 2022, 6:40 AM
gchatelet updated this revision to Diff 441013.Jun 29 2022, 7:53 AM
gchatelet marked 2 inline comments as done.
  • Address comments
libc/test/src/string/memory_utils/algorithm_test.cpp
11

It should as this is not testing implementations, only libraries.

This revision was landed with ongoing or failed builds.Jun 29 2022, 7:54 AM
This revision was automatically updated to reflect the committed changes.