Skip to content

Commit baf35d7

Browse files
authored
[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.
1 parent 633e740 commit baf35d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libc/cmake/modules/LLVMLibCCompileOptionRules.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ function(_get_compile_options_from_config output_var)
107107
endif()
108108

109109
if(LIBC_CONF_ERRNO_MODE)
110-
set(APPEND config_options "-DLIBC_ERRNO_MODE=${LIBC_CONF_ERRNO_MODE}")
110+
list(APPEND config_options "-DLIBC_ERRNO_MODE=${LIBC_CONF_ERRNO_MODE}")
111111
endif()
112112

113113
set(${output_var} ${config_options} PARENT_SCOPE)

0 commit comments

Comments
 (0)