[libc-commits] [libc] [libc] Add internal locale structures and config options (PR #211470)

Pavel Labath via libc-commits libc-commits at lists.llvm.org
Tue Nov 17 06:50:21 PST 2026


================
@@ -174,6 +174,14 @@ function(_get_compile_options_from_config output_var)
     libc_add_definition(config_options "LIBC_CONF_WCTYPE_MODE=${LIBC_CONF_WCTYPE_MODE}")
   endif()
 
+  if(LIBC_CONF_DEFAULT_LOCALE)
+    libc_add_definition(config_options "LIBC_CONF_DEFAULT_LOCALE=\"${LIBC_CONF_DEFAULT_LOCALE}\"")
+  endif()
+
+  if(LIBC_CONF_DISABLE_RUNTIME_LOCALE)
----------------
labath wrote:

Could we make this positive (LIBC_CONF_ENABLE_RUNTIME_LOCALE), so that `#ifndef LIBC_CONF_DISABLE_RUNTIME_LOCALE` doesn't have a double negation?

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


More information about the libc-commits mailing list