Skip to content

Commit c7aff2a

Browse files
authored
[libc] Pass through LIBC_CONF_MATH_OPTIMIZATIONS correctly (#113540)
It's checked in a cmake function that builds up a list called `config_options`. But the check was appending to a list called `compile_options`, so the intended `-DLIBC_MATH=whatever` didn't end up on the actual compile command lines.
1 parent b34d649 commit c7aff2a

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
@@ -84,7 +84,7 @@ function(_get_compile_options_from_config output_var)
8484
endif()
8585

8686
if(LIBC_CONF_MATH_OPTIMIZATIONS)
87-
list(APPEND compile_options "-DLIBC_MATH=${LIBC_CONF_MATH_OPTIMIZATIONS}")
87+
list(APPEND config_options "-DLIBC_MATH=${LIBC_CONF_MATH_OPTIMIZATIONS}")
8888
endif()
8989

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

0 commit comments

Comments
 (0)