Skip to content

Commit

Permalink
[libcxx] make LIBCXXABI_PTHREAD_LIB_NAME configurable
Browse files Browse the repository at this point in the history
Alternative is "wasi-emulated-pthread".
  • Loading branch information
thewtex committed Feb 10, 2025
1 parent 7ad8a3d commit 073ceff
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libcxxabi/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 073ceff

Please sign in to comment.