[libc-commits] [libc] Move LIBC_CONF_STRING_UNSAFE_WIDE_READ to top-level libc-configuration (PR #165046)

via libc-commits libc-commits at lists.llvm.org
Fri Oct 24 17:48:05 PDT 2025


================
@@ -1,11 +1,5 @@
 add_subdirectory(memory_utils)
 
-if(LIBC_CONF_STRING_UNSAFE_WIDE_READ)
-  list(APPEND string_config_options "-DLIBC_COPT_STRING_UNSAFE_WIDE_READ")
-endif()
-if(LIBC_CONF_MEMSET_X86_USE_SOFTWARE_PREFETCHING)
-  list(APPEND string_config_options "-DLIBC_COPT_MEMSET_X86_USE_SOFTWARE_PREFETCHING")
-endif()
 if(string_config_options)
   list(PREPEND string_config_options "COMPILE_OPTIONS")
 endif()
----------------
lntue wrote:

nit: Remove this `if() ... endif()` and `${string_config_options}` in `add_header_library(string_utils ... )` below.

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


More information about the libc-commits mailing list