From 2d17309cc719c41e02ffd1d6cac10f95a7e2359c Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Tue, 19 Mar 2024 23:30:25 +0200 Subject: [PATCH] gh-117041: Add "-X gil" in the Python CLI help (GH-117042) --- Python/initconfig.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Python/initconfig.c b/Python/initconfig.c index 95234eed5ed..215d6a1d4e0 100644 --- a/Python/initconfig.c +++ b/Python/initconfig.c @@ -195,6 +195,11 @@ The following implementation-specific options are available:\n\ -X frozen_modules=[on|off]: whether to use frozen modules; the default is \"on\"\n\ for installed Python and \"off\" for a local build;\n\ also PYTHON_FROZEN_MODULES\n\ +" +#ifdef Py_GIL_DISABLED +"-X gil=[0|1]: enable (1) or disable (0) the GIL; also PYTHON_GIL\n" +#endif +"\ -X importtime: show how long each import takes; also PYTHONPROFILEIMPORTTIME\n\ -X int_max_str_digits=N: limit the size of int<->str conversions;\n\ 0 disables the limit; also PYTHONINTMAXSTRDIGITS\n\