[libcxx-commits] [libcxx] [libc++] Guard additional headers with _LIBCPP_HAS_LOCALIZATION (PR #131921)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Mar 25 14:56:38 PDT 2025


ldionne wrote:

Thanks a lot for the analysis. We have a kind of precedent for this type of check here: https://github.com/llvm/llvm-project/blob/df011313cf14a2a0735ed3c56b70c5a145b23213/libcxx/include/__configuration/platform.h#L35

We could check for `#if __has_include(<picolibc.h>)`? I'm not a big fan of this because I think it's really brittle to start checking for whether arbitrarily named headers exist and then include that, but that could work. WDYT?

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


More information about the libcxx-commits mailing list