GH-133171: Prevent combinations of --disable-gil and --enable-experimental-jit... for now (GH-133179)

This commit is contained in:
Brandt Bucher 2025-05-02 09:26:03 -07:00 committed by GitHub
parent f425509349
commit 2da48e32f6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 48 additions and 26 deletions

View file

@ -123,6 +123,13 @@ if "%do_pgo%" EQU "true" if "%platf%" EQU "x64" (
)
)
if "%UseDisableGil%" EQU "true" if "%UseTIER2%" NEQ "" (
rem GH-133171: This configuration builds the JIT but never actually uses it,
rem which is surprising (and strictly worse than not building it at all):
echo.ERROR: --experimental-jit cannot be used with --disable-gil.
exit /b 1
)
if not exist "%GIT%" where git > "%TEMP%\git.loc" 2> nul && set /P GIT= < "%TEMP%\git.loc" & del "%TEMP%\git.loc"
if exist "%GIT%" set GITProperty=/p:GIT="%GIT%"
if not exist "%GIT%" echo Cannot find Git on PATH & set GITProperty=