[libcxx-commits] [libcxxabi] [libcxx] make LIBCXXABI_PTHREAD_LIB_NAME configurable (PR #126609)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Feb 10 14:11:10 PST 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-libcxxabi
Author: Matt McCormick (thewtex)
<details>
<summary>Changes</summary>
Alternative is "wasi-emulated-pthread".
---
Full diff: https://github.com/llvm/llvm-project/pull/126609.diff
1 Files Affected:
- (modified) libcxxabi/src/CMakeLists.txt (+2-1)
``````````diff
diff --git a/libcxxabi/src/CMakeLists.txt b/libcxxabi/src/CMakeLists.txt
index 0a6fc892a4f6993..4bc8884e07b8ee6 100644
--- a/libcxxabi/src/CMakeLists.txt
+++ b/libcxxabi/src/CMakeLists.txt
@@ -69,7 +69,8 @@ endif()
if (NOT APPLE) # On Apple platforms, we always use -nostdlib++ so we don't need to re-add other libraries
if (LIBCXXABI_ENABLE_THREADS)
- add_library_flags_if(LIBCXXABI_HAS_PTHREAD_LIB pthread)
+ set(LIBCXXABI_PTHREAD_LIB_NAME "pthread" CACHE STRING "")
+ add_library_flags_if(LIBCXXABI_HAS_PTHREAD_LIB ${LIBCXXABI_PTHREAD_LIB_NAME})
endif()
add_library_flags_if(LIBCXXABI_HAS_C_LIB c)
``````````
</details>
https://github.com/llvm/llvm-project/pull/126609
More information about the libcxx-commits
mailing list