This is an archive of the discontinued LLVM Phabricator instance.

[libcxx] check _LIBCPP_PROVIDES_DEFAULT_RUNE_TABLE first in __locale
ClosedPublic

Authored by xiaoxiang781216 on Nov 9 2020, 6:04 AM.

Details

Summary

just like what's done in __locale.cpp

Co-authored-by: Chao An <anchao@xiaomi.com>

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>

Diff Detail

Event Timeline

xiaoxiang781216 created this revision.Nov 9 2020, 6:04 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 9 2020, 6:04 AM
Herald added a reviewer: Restricted Project. · View Herald Transcript
xiaoxiang781216 requested review of this revision.Nov 9 2020, 6:04 AM

Updating D91074: [libcxx] check _LIBCPP_PROVIDES_DEFAULT_RUNE_TABLE first in __locale

Updating D91074: [libcxx] Check _LIBCPP_PROVIDES_DEFAULT_RUNE_TABLE first in __locale

ldionne accepted this revision.Nov 9 2020, 7:59 AM
ldionne added a subscriber: ldionne.

This looks good to me (once CI passes), but can you explain what issue this is fixing?

This revision is now accepted and ready to land.Nov 9 2020, 7:59 AM

@ ldionne NuttX's simulator is built on Ubuntu with the host gcc toolchain, and then GLIBC is defined in this case, but NuttX's libc is written from scratch and don't define _ISspace... at all.