[libc-commits] [clang] [libc] [libcxx] [libc][libcxx] Support for building libc++ against LLVM libc (PR #99287)

Louis Dionne via libc-commits libc-commits at lists.llvm.org
Thu Jul 18 05:54:32 PDT 2024


================
@@ -784,6 +794,10 @@ config_define_if_not(LIBCXX_ENABLE_WIDE_CHARACTERS _LIBCPP_HAS_NO_WIDE_CHARACTER
 config_define_if_not(LIBCXX_ENABLE_TIME_ZONE_DATABASE _LIBCPP_HAS_NO_TIME_ZONE_DATABASE)
 config_define_if_not(LIBCXX_ENABLE_VENDOR_AVAILABILITY_ANNOTATIONS _LIBCPP_HAS_NO_VENDOR_AVAILABILITY_ANNOTATIONS)
 
+if (LIBCXX_LIBC STREQUAL "llvm-libc")
+  config_define(ON _LIBCPP_HAS_LLVM_LIBC)
+endif()
----------------
ldionne wrote:

I am not going to block this patch on fixing this, but we don't want to add a new `__config_site` definition every time we add support for a new library / platform. Instead, we should provide control over the implementation of localization used by the library at the CMake level, or a similar solution to prevent the proliferation of boolean flags.

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


More information about the libc-commits mailing list