Skip to content

Commit 6a29576

Browse files
committed
windows: change profile names to expose noopt
This matches the naming convention with other platforms.
1 parent 3eb1174 commit 6a29576

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

cpython-windows/build.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1605,7 +1605,7 @@ def build_cpython(
16051605
openssl_archive,
16061606
libffi_archive=None,
16071607
):
1608-
static = profile == "static"
1608+
static = "static" in profile
16091609
pgo = "-pgo" in profile
16101610

16111611
msbuild = find_msbuild()
@@ -1995,8 +1995,8 @@ def main():
19951995
)
19961996
parser.add_argument(
19971997
"--profile",
1998-
choices={"static", "shared", "shared-pgo"},
1999-
default="static",
1998+
choices={"static-noopt", "shared-noopt", "shared-pgo"},
1999+
default="static-noopt",
20002000
help="How to compile Python",
20012001
)
20022002
parser.add_argument("--sh", help="Path to sh.exe in a cygwin or mingw installation")

docs/building.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ If building CPython 3.8+, there are the following additional requirements:
6363
To build a Python distribution for Windows x64::
6464

6565
# From a Visual Studio 2017/2019 x64 native tools command prompt:
66-
$ py.exe build-windows.py --profile static
66+
$ py.exe build-windows.py --profile static-nopt
6767

6868
It is also possible to build a more traditional dynamically linked
6969
distribution, optionally with PGO optimizations::
7070

71-
$ py.exe build-windows.py --profile shared
71+
$ py.exe build-windows.py --profile shared-nopt
7272
$ py.exe build-windows.py --profile shared-pgo
7373

7474
If building CPython 3.8+, you will need to specify the path to a

0 commit comments

Comments
 (0)