[libcxx-commits] [PATCH] D154404: [libcxx] Add support for SerenityOS

Andrew Kaster via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Jul 3 18:56:44 PDT 2023


ADKaster created this revision.
Herald added a subscriber: krytarowski.
Herald added a project: All.
ADKaster requested review of this revision.
Herald added a project: libc++.
Herald added a subscriber: libcxx-commits.
Herald added a reviewer: libc++.

This commit teaches libc++ about what features are available in our
LibC, namely:

- We do not have locale support, so no-op shims should be used in place of the C locale API.
- The number of errno constants defined by us is given by the value of the `ELAST` macro.
- Multithreading is implemented though the pthread library.
- Use libc++'s builtin character type table instead of the one provided by LibC as there's a lot of extra porting work to convince the rest of locale.cpp to use our character type table properly.

Depends on D154403 <https://reviews.llvm.org/D154403>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D154404

Files:
  libcxx/include/CMakeLists.txt
  libcxx/include/__config
  libcxx/include/__locale
  libcxx/include/__support/serenity/xlocale.h
  libcxx/include/locale
  libcxx/src/include/config_elast.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154404.536930.patch
Type: text/x-patch
Size: 4057 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20230704/0c0ee658/attachment.bin>


More information about the libcxx-commits mailing list