Skip to content

Commit 95770e4

Browse files
committed
global: add debug field to PYTHON.json
1 parent 9d52de5 commit 95770e4

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

cpython-unix/build.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,7 @@ def build_cpython(
703703
python_info = {
704704
"version": "5",
705705
"target_triple": target_triple,
706+
"debug": debug,
706707
"python_tag": entry["python_tag"],
707708
"python_version": entry["version"],
708709
"python_stdlib_test_packages": sorted(STDLIB_TEST_PACKAGES),

cpython-windows/build.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1890,6 +1890,7 @@ def build_cpython(python_entry_name: str, arch: str, sh_exe, profile):
18901890
python_info = {
18911891
"version": "5",
18921892
"target_triple": target_triple,
1893+
"debug": False,
18931894
"python_tag": entry["python_tag"],
18941895
"python_version": python_version,
18951896
"python_symbol_visibility": python_symbol_visibility,

docs/distributions.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,13 @@ target_triple
4545

4646
(Version 5 or above only.)
4747

48+
debug
49+
Boolean indicating if this is a debug build.
50+
51+
Debug builds have no optimizations.
52+
53+
(Version 5 or above only.)
54+
4855
os
4956
Target operating system for the distribution. e.g. ``linux``, ``macos``,
5057
or ``windows``.

0 commit comments

Comments
 (0)