diff options
author | Steve Dower <steve.dower@python.org> | 2024-01-17 21:52:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-17 21:52:23 (GMT) |
commit | f56d132deb9fff861439ed56ed7414d22e4e4bb9 (patch) | |
tree | 69e70221cd40f134de9abf1292f228ec7d5c9c11 /PCbuild/rt.bat | |
parent | 78fcde039a33d8463e34356d5462fecee0f2831a (diff) | |
download | cpython-f56d132deb9fff861439ed56ed7414d22e4e4bb9.zip cpython-f56d132deb9fff861439ed56ed7414d22e4e4bb9.tar.gz cpython-f56d132deb9fff861439ed56ed7414d22e4e4bb9.tar.bz2 |
gh-112984 Update Windows build and installer for free-threaded builds (GH-113129)
Diffstat (limited to 'PCbuild/rt.bat')
-rw-r--r-- | PCbuild/rt.bat | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/PCbuild/rt.bat b/PCbuild/rt.bat index 332ba5e..293f99a 100644 --- a/PCbuild/rt.bat +++ b/PCbuild/rt.bat @@ -9,6 +9,7 @@ rem -q runs the tests just once, and without deleting .pyc files. rem -p <Win32|x64|ARM|ARM64> or -win32, -x64, -arm32, -arm64 rem Run the specified architecture of python (or python_d if -d rem was specified). If omitted, uses %PREFIX% if set or 64-bit. +rem --disable-gil Run free-threaded build. rem All leading instances of these switches are shifted off, and rem whatever remains (up to 9 arguments) is passed to regrtest.py. rem For example, @@ -29,6 +30,7 @@ rem rt -u "network,largefile" setlocal set pcbuild=%~dp0 +set pyname=python set suffix= set qmode= set dashO= @@ -39,15 +41,18 @@ set exe= if "%1"=="-O" (set dashO=-O) & shift & goto CheckOpts if "%1"=="-q" (set qmode=yes) & shift & goto CheckOpts if "%1"=="-d" (set suffix=_d) & shift & goto CheckOpts +rem HACK: Need some way to infer the version number in this script +if "%1"=="--disable-gil" (set pyname=python3.13t) & shift & goto CheckOpts if "%1"=="-win32" (set prefix=%pcbuild%win32) & shift & goto CheckOpts if "%1"=="-x64" (set prefix=%pcbuild%amd64) & shift & goto CheckOpts +if "%1"=="-amd64" (set prefix=%pcbuild%amd64) & shift & goto CheckOpts if "%1"=="-arm64" (set prefix=%pcbuild%arm64) & shift & goto CheckOpts if "%1"=="-arm32" (set prefix=%pcbuild%arm32) & shift & goto CheckOpts if "%1"=="-p" (call :SetPlatform %~2) & shift & shift & goto CheckOpts if NOT "%1"=="" (set regrtestargs=%regrtestargs% %1) & shift & goto CheckOpts if not defined prefix set prefix=%pcbuild%amd64 -set exe=%prefix%\python%suffix%.exe +set exe=%prefix%\%pyname%%suffix%.exe set cmd="%exe%" %dashO% -m test %regrtestargs% if defined qmode goto Qmode |