[libcxx-commits] [libcxxabi] [libcxx] make LIBCXXABI_PTHREAD_LIB_NAME configurable (PR #126609)
Matt McCormick via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Feb 10 14:10:19 PST 2025
https://github.com/thewtex created https://github.com/llvm/llvm-project/pull/126609
Alternative is "wasi-emulated-pthread".
>From 073cefffca626d76a13982ce46839a89523ab832 Mon Sep 17 00:00:00 2001
From: Matt McCormick <matt at mmmccormick.com>
Date: Wed, 22 Jan 2025 14:50:48 -0500
Subject: [PATCH] [libcxx] make LIBCXXABI_PTHREAD_LIB_NAME configurable
Alternative is "wasi-emulated-pthread".
---
libcxxabi/src/CMakeLists.txt | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
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)
More information about the libcxx-commits
mailing list