[libc-commits] [libc] [libc][math] Add LIBC_CONF_MATH_USE_SYSTEM_FENV / LIBC_MATH_USE_SYSTEM_FENV (PR #172902)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Thu Dec 18 13:02:49 PST 2025
================
@@ -123,6 +123,14 @@ function(_get_compile_options_from_config output_var)
list(APPEND config_options "-DLIBC_COPT_RAW_MUTEX_DEFAULT_SPIN_COUNT=${LIBC_CONF_RAW_MUTEX_DEFAULT_SPIN_COUNT}")
endif()
+ if(LIBC_CONF_MATH_USE_SYSTEM_FENV)
+ if(MSVC)
+ list(APPEND config_options "/DLIBC_MATH_USE_SYSTEM_FENV")
+ else()
----------------
michaelrj-google wrote:
would it make sense to generalize this so we don't need a special case for MSVC for every config option?
https://github.com/llvm/llvm-project/pull/172902
More information about the libc-commits
mailing list