[libcxx-commits] [libcxx] [libc++] tests with picolibc: prevent looking for unneeded "rt" library (PR #82262)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Feb 27 08:06:44 PST 2024
================
@@ -118,6 +118,11 @@ elseif(ANDROID)
set(LIBCXX_HAS_ATOMIC_LIB NO)
else()
check_library_exists(pthread pthread_create "" LIBCXX_HAS_PTHREAD_LIB)
- check_library_exists(rt clock_gettime "" LIBCXX_HAS_RT_LIB)
+ check_library_exists("" clock_gettime "" LIBCXX_HAS_RT_FUNC_WITHOUT_LIB)
----------------
ldionne wrote:
IMO the issue here is that `check_library_exists(rt ...)` doesn't ensure that `rt` actually exists, it seems to only ensure that `clock_gettime` can be used. What happens if we use something like `check_library_exists("" "" "" LIBCXX_HAS_RT_LIB)` instead?
https://github.com/llvm/llvm-project/pull/82262
More information about the libcxx-commits
mailing list