Files
spark/tools/build_spark.cmd
John Colvin b061509126 build: Compile spark-windows with clang
Made a couple minor changes to cpp to address new werrors
2026-03-20 17:02:44 +00:00

28 lines
880 B
Batchfile

@echo off
setlocal
setlocal enabledelayedexpansion
set VS_DEV_CMD_BAT="C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\Common7\\Tools\\VsDevCmd.bat"
if exist %VS_DEV_CMD_BAT% (
call %VS_DEV_CMD_BAT% -arch=x64 -host_arch=x64
)
set TOOLS_DIR=%~dp0
set REPO_DIR=%~dp0..
set BUILD_PY=%TOOLS_DIR%\py\build_spark.py
if DEFINED VIRTUAL_ENV (
@REM We're already in a venv, just run build_data_stream.py (whether or not it is
@REM the 'right' venv is the caller's responsibility)
echo "Building in the current venv '%VIRTUAL_ENV'"
@call python %BUILD_PY% %*
set RESULT=!ERRORLEVEL!
) else (
@REM Ensure the (default) venv is created, then run build_data_stream.py in it
@call %TOOLS_DIR%\ensure_venv.cmd -r %TOOLS_DIR%\py\requirements-spark.txt
@call %TOOLS_DIR%\venv_exec.cmd python %BUILD_PY% %*
set RESULT=!ERRORLEVEL!
)
EXIT /B !RESULT!