[libc] Fix bug in LIBC_CONF_ERRNO_MODE being undefined (#144896)

A typo, set() instead of list() would cause the build to not define
LIBC_CONF_ERRNO_MODE, which would cause the wrong configuration to be
used.
This commit is contained in:
William Huynh
2025-06-19 19:50:07 +01:00
committed by GitHub
parent 633e740e34
commit baf35d7a82

View File

@@ -107,7 +107,7 @@ function(_get_compile_options_from_config output_var)
endif()
if(LIBC_CONF_ERRNO_MODE)
set(APPEND config_options "-DLIBC_ERRNO_MODE=${LIBC_CONF_ERRNO_MODE}")
list(APPEND config_options "-DLIBC_ERRNO_MODE=${LIBC_CONF_ERRNO_MODE}")
endif()
set(${output_var} ${config_options} PARENT_SCOPE)