[llvm] Update Windows release script (PR #215749)

Hans Wennborg via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 20 04:54:20 PDT 2026


================
@@ -394,19 +396,30 @@ exit /b 0
 ::==============================================================================
 :set_environment
 REM Restore original path
-set PATH=%OLDPATH%
+set "PATH=%OLDPATH%"
 
-set python_dir=%1
+set "python_dir=%1"
 
 REM Set Python environment
 if "%local-python%" == "true" (
-  FOR /F "delims=" %%i IN ('where python.exe ^| head -1') DO set python_exe=%%i
-  set PYTHONHOME=!python_exe:~0,-11!
-) else (
-  %python_dir%/python.exe --version || exit /b 1
-  set PYTHONHOME=%python_dir%
+  set "python_dir="
----------------
zmodem wrote:

Thanks for explaining.

+1 to the suggestion on rewriting this in Python long-term. Apparently I can't read batch anymore :)

https://github.com/llvm/llvm-project/pull/215749


More information about the llvm-commits mailing list