We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4f1748 commit 20d51dcCopy full SHA for 20d51dc
Modules/_sysconfig.c
@@ -66,7 +66,23 @@ _sysconfig_config_vars_impl(PyObject *module)
66
Py_DECREF(config);
67
return NULL;
68
}
69
-
+#ifdef Py_JIT_ENABLED
70
+ if (Py_JIT_ENABLED == 1) {
71
+ PyObject *py_jit_enabled = _PyLong_GetOne();
72
+ } else {
73
+ PyObject *py_jit_enabled = PyUnicode_FromString("interpreter");
74
+ if (py_jit_enabled == NULL) {
75
+ Py_DECREF(config);
76
+ return NULL;
77
+ }
78
79
+#else
80
+ PyObject *py_jit_enabled = _PyLong_GetZero();
81
+#endif
82
+ if (PyDict_SetItemString(config, "Py_JIT_ENABLED", py_jit_enabled) < 0) {
83
84
85
86
return config;
87
88
0 commit comments