diff options
author | Christian Heimes <christian@python.org> | 2022-07-27 18:28:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-27 18:28:06 (GMT) |
commit | 0fe645d6fd22a6f57e777a29e65cf9a4ff9785ae (patch) | |
tree | a6222de1305545869eed745741bbf1f1b3e5f728 /configure | |
parent | 226d02bb109d08601fbccd645e9d67aee2e5bcdc (diff) | |
download | cpython-0fe645d6fd22a6f57e777a29e65cf9a4ff9785ae.zip cpython-0fe645d6fd22a6f57e777a29e65cf9a4ff9785ae.tar.gz cpython-0fe645d6fd22a6f57e777a29e65cf9a4ff9785ae.tar.bz2 |
gh-95174: Add pthread stubs for WASI (GH-95234)
Co-authored-by: Brett Cannon <brett@python.org>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 15 |
1 files changed, 14 insertions, 1 deletions
@@ -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 @@ -14910,6 +14915,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 |