From baf35d7a829efb9688dc0aef6d1e161ef6bc5983 Mon Sep 17 00:00:00 2001 From: William Huynh Date: Thu, 19 Jun 2025 19:50:07 +0100 Subject: [PATCH] [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. --- libc/cmake/modules/LLVMLibCCompileOptionRules.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libc/cmake/modules/LLVMLibCCompileOptionRules.cmake b/libc/cmake/modules/LLVMLibCCompileOptionRules.cmake index a98e7276bef8..82d06e2b9eb5 100644 --- a/libc/cmake/modules/LLVMLibCCompileOptionRules.cmake +++ b/libc/cmake/modules/LLVMLibCCompileOptionRules.cmake @@ -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)