This is an archive of the discontinued LLVM Phabricator instance.

[libc] Make add_libc_unittest compile with -ffreestanding
ClosedPublic

Authored by gchatelet on Aug 8 2023, 2:47 PM.

Details

Summary

tests not compile with -ffreestanding can pull unwanted dependencies like limits.h which defines PTHREAD_STACK_MIN.
This is what caused the build bot failure in https://reviews.llvm.org/D156981#4570776.

Diff Detail

Event Timeline

gchatelet created this revision.Aug 8 2023, 2:47 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptAug 8 2023, 2:47 PM
gchatelet requested review of this revision.Aug 8 2023, 2:47 PM
sivachandra accepted this revision.Aug 8 2023, 4:46 PM
This revision is now accepted and ready to land.Aug 8 2023, 4:46 PM