[libcxx-commits] [libcxx] [libcxx] Define _LIBCPP_HAS_C8RTOMB_MBRTOC8 for picolibc (PR #152724)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Mon Aug 11 03:02:11 PDT 2025


philnik777 wrote:

> @philnik777 I don't understand the two suggestions you made. Can you please give more details? Thank you

`_LIBCPP_HAS_C8RTOMB_MBRTOC8` is currently false if we don't know whether a library provides it or not. IMO we should assume it's available unless we know for a fact it's not. With Clang we don't care at all whether it's available, since we have `_LIBCPP_USING_IF_EXISTS`, so we can just always define `_LIBCPP_HAS_C8RTOMB_MBRTOC8` to true in that case.

https://github.com/llvm/llvm-project/pull/152724


More information about the libcxx-commits mailing list