Skip to content

Commit 3f93295

Browse files
authored
[3.13] GH-133231: Backport PYTHON_JIT documentation to 3.13 (GH-133539)
1 parent d4f6367 commit 3f93295

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ Tools/unicode/data/
138138
# hendrikmuhs/ccache-action@v1
139139
/.ccache
140140
/cross-build/
141-
/jit_stencils.h
141+
/jit_stencils*.h
142142
/platform
143143
/profile-clean-stamp
144144
/profile-run-stamp

Doc/using/cmdline.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,6 +1229,14 @@ conflict.
12291229

12301230
.. versionadded:: 3.13
12311231

1232+
.. envvar:: PYTHON_JIT
1233+
1234+
On builds where experimental just-in-time compilation is available, this
1235+
variable can force the JIT to be disabled (``0``) or enabled (``1``) at
1236+
interpreter startup.
1237+
1238+
.. versionadded:: 3.13
1239+
12321240
Debug-mode variables
12331241
~~~~~~~~~~~~~~~~~~~~
12341242

Doc/whatsnew/3.13.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,11 +390,11 @@ without the optional value.
390390

391391
* ``no``: Disable the entire Tier 2 and JIT pipeline.
392392
* ``yes``: Enable the JIT.
393-
To disable the JIT at runtime, pass the environment variable ``PYTHON_JIT=0``.
393+
To disable the JIT at runtime, pass the environment variable :envvar:`PYTHON_JIT=0 <PYTHON_JIT>`.
394394
* ``yes-off``: Build the JIT but disable it by default.
395-
To enable the JIT at runtime, pass the environment variable ``PYTHON_JIT=1``.
395+
To enable the JIT at runtime, pass the environment variable :envvar:`PYTHON_JIT=1 <PYTHON_JIT>`.
396396
* ``interpreter``: Enable the Tier 2 interpreter but disable the JIT.
397-
The interpreter can be disabled by running with ``PYTHON_JIT=0``.
397+
The interpreter can be disabled by running with :envvar:`PYTHON_JIT=0 <PYTHON_JIT>`.
398398

399399
The internal architecture is roughly as follows:
400400

0 commit comments

Comments
 (0)