We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 58a05fd commit fac6c31Copy full SHA for fac6c31
libcxx/cmake/config-ix.cmake
@@ -135,5 +135,7 @@ else()
135
check_library_exists(pthread pthread_create "" LIBCXX_HAS_PTHREAD_LIB)
136
check_library_exists(rt clock_gettime "" LIBCXX_HAS_RT_LIB)
137
check_library_exists(atomic __atomic_fetch_add_8 "" LIBCXX_HAS_ATOMIC_LIB)
138
- check_library_exists(m lgamma_r "" LIBCXX_HAS_MATH_LIB)
+ if (CMAKE_SYSTEM_NAME STREQUAL "Linux" AND CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
139
+ set(LIBCXX_HAS_MATH_LIB ON)
140
+ endif()
141
endif()
0 commit comments