mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
gh-95174: Add pthread stubs for WASI (GH-95234)
Co-authored-by: Brett Cannon <brett@python.org>
This commit is contained in:
parent
226d02bb10
commit
0fe645d6fd
17 changed files with 332 additions and 41 deletions
15
configure
generated
vendored
15
configure
generated
vendored
|
@ -14748,11 +14748,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
|
||||
|
@ -14908,6 +14913,14 @@ _ACEOF
|
|||
fi
|
||||
done
|
||||
|
||||
fi
|
||||
|
||||
if test "x$posix_threads" = xstub; then :
|
||||
|
||||
|
||||
$as_echo "#define HAVE_PTHREAD_STUBS 1" >>confdefs.h
|
||||
|
||||
|
||||
fi
|
||||
|
||||
# Check for enable-ipv6
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue