This is an archive of the discontinued LLVM Phabricator instance.

[libc] Make libc_errno point to internal errno for non-public builds.
ClosedPublic

Authored by sivachandra on Mar 13 2023, 6:38 PM.

Details

Summary

The macro llvmlibc_errno has also been removed. This change completes
the switch to using a hermetic errno for unit tests.

Fixes #61037

Diff Detail

Event Timeline

sivachandra created this revision.Mar 13 2023, 6:38 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 13 2023, 6:38 PM
sivachandra requested review of this revision.Mar 13 2023, 6:38 PM
lntue accepted this revision.Mar 13 2023, 8:02 PM

I assume the failed sys/stat tests are fixed with https://reviews.llvm.org/D146004?

This revision is now accepted and ready to land.Mar 13 2023, 8:02 PM
sivachandra edited the summary of this revision. (Show Details)Mar 13 2023, 9:05 PM

I assume the failed sys/stat tests are fixed with https://reviews.llvm.org/D146004?

Yes, that is right. The builds have succeeded after I have rebased.

libc/src/errno/libc_errno.cpp