diff options
author | Christian Heimes <christian@python.org> | 2022-08-01 14:37:45 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-01 14:37:45 (GMT) |
commit | e62a0dfab2bbc29324ca1879e287fff7fa8f21e0 (patch) | |
tree | 024357a512b6fa49ce42c8c331de3d2e56851bc2 /configure | |
parent | 9af9ea28e756a8a1961b065856c697fc1262ca82 (diff) | |
download | cpython-e62a0dfab2bbc29324ca1879e287fff7fa8f21e0.zip cpython-e62a0dfab2bbc29324ca1879e287fff7fa8f21e0.tar.gz cpython-e62a0dfab2bbc29324ca1879e287fff7fa8f21e0.tar.bz2 |
[3.11] gh-95174: Add pthread stubs for WASI (GH-95234) (#95503)
Co-authored-by: Brett Cannon <brett@python.org>.
(cherry picked from commit 0fe645d6fd22a6f57e777a29e65cf9a4ff9785ae)
Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -14153,11 +14153,16 @@ if test "x$ac_cv_lib_cma_pthread_create" = xyes; then : else + case $ac_sys_system in #( + WASI) : + posix_threads=stub ;; #( + *) : as_fn_error $? "could not find pthreads on your system" "$LINENO" 5 + ;; +esac fi - fi fi @@ -14315,6 +14320,14 @@ done fi +if test "x$posix_threads" = xstub; then : + + +$as_echo "#define HAVE_PTHREAD_STUBS 1" >>confdefs.h + + +fi + # Check for enable-ipv6 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if --enable-ipv6 is specified" >&5 |