gh-108223: Add --disable-gil to configure (gh-108227)

The `--disable-gil` flags does not do anything yet other than define the
Py_NOGIL macro. This is intended to support setting up additional
buildbots.
This commit is contained in:
Sam Gross 2023-08-21 13:50:35 -04:00 committed by GitHub
parent 21c0844742
commit b16ecb88e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 49 additions and 0 deletions

31
configure generated vendored
View file

@ -1103,6 +1103,7 @@ with_openssl_rpath
with_ssl_default_suites
with_builtin_hashlib_hashes
enable_test_modules
enable_gil
'
ac_precious_vars='build_alias
host_alias
@ -1803,6 +1804,8 @@ Optional Features:
use big digits (30 or 15 bits) for Python longs
(default is 30)]
--disable-test-modules don't build nor install test modules
--disable-gil enable experimental support for running without the
GIL (default is no)
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
@ -27904,6 +27907,34 @@ fi
printf "%s\n" "$TEST_MODULES" >&6; }
# Check for --disable-gil
# --disable-gil
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for --disable-gil" >&5
printf %s "checking for --disable-gil... " >&6; }
# Check whether --enable-gil was given.
if test ${enable_gil+y}
then :
enableval=$enable_gil; if test "x$enable_gil" = xyes
then :
disable_gil=no
else $as_nop
disable_gil=yes
fi
else $as_nop
disable_gil=no
fi
{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $disable_gil" >&5
printf "%s\n" "$disable_gil" >&6; }
if test "$disable_gil" = "yes"
then
printf "%s\n" "#define Py_NOGIL 1" >>confdefs.h
fi
# stdlib not available