| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -7126,6 +7126,21 @@ AC_ARG_ENABLE([test-modules], | |||
| 7126 | 7126 | AC_MSG_RESULT([$TEST_MODULES]) | |
| 7127 | 7127 | AC_SUBST([TEST_MODULES]) | |
| 7128 | 7128 | ||
| 7129 | + # Check for --disable-gil | ||
| 7130 | + # --disable-gil | ||
| 7131 | + AC_MSG_CHECKING([for --disable-gil]) | ||
| 7132 | + AC_ARG_ENABLE([gil], | ||
| 7133 | + [AS_HELP_STRING([--disable-gil], [enable experimental support for running without the GIL (default is no)])], | ||
| 7134 | + [AS_VAR_IF([enable_gil], [yes], [disable_gil=no], [disable_gil=yes])], [disable_gil=no] | ||
| 7135 | + ) | ||
| 7136 | + AC_MSG_RESULT([$disable_gil]) | ||
| 7137 | + | ||
| 7138 | + if test "$disable_gil" = "yes" | ||
| 7139 | + then | ||
| 7140 | + AC_DEFINE([Py_NOGIL], [1], | ||
| 7141 | + [Define if you want to disable the GIL]) | ||
| 7142 | + fi | ||
| 7143 | + | ||
| 7129 | 7144 | AC_DEFUN([PY_STDLIB_MOD_SET_NA], [ | |
| 7130 | 7145 | m4_foreach([mod], [$@], [ | |
| 7131 | 7146 | AS_VAR_SET([py_cv_module_]mod, [n/a])]) | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1609,6 +1609,9 @@ | |||
| 1609 | 1609 | SipHash13: 3, externally defined: 0 */ | |
| 1610 | 1610 | #undef Py_HASH_ALGORITHM | |
| 1611 | 1611 | ||
| 1612 | + /* Define if you want to disable the GIL */ | ||
| 1613 | + #undef Py_NOGIL | ||
| 1614 | + | ||
| 1612 | 1615 | /* Define if you want to enable internal statistics gathering. */ | |
| 1613 | 1616 | #undef Py_STATS | |
| 1614 | 1617 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments