Fixed it
This commit is contained in:
parent
0460ae1a50
commit
1dca4a91d9
19 changed files with 333 additions and 156 deletions
|
@ -5,7 +5,7 @@ rem ─────────────────────────
|
|||
rem Defaults (override by passing [backend] [build])
|
||||
rem ──────────────────────────────────────────────────
|
||||
set BUILD_DIR=builddir
|
||||
set BACKEND=ninja
|
||||
set BACKEND=vs2022
|
||||
set BUILD=debug
|
||||
|
||||
rem ──────────────────────────────────────────────────
|
||||
|
@ -22,18 +22,6 @@ rem ─────────────────────────
|
|||
if not "%~1"=="" set BACKEND=%~1
|
||||
if not "%~2"=="" set BUILD=%~2
|
||||
|
||||
rem ──────────────────────────────────────────────────
|
||||
rem Bootstrap Visual Studio if requested
|
||||
rem ──────────────────────────────────────────────────
|
||||
if /I "%BACKEND:~0,2%"=="vs" (
|
||||
echo [INFO] Initializing Visual Studio environment for %BACKEND%...
|
||||
call "%ProgramFiles(x86)%\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64 >nul 2>&1
|
||||
if errorlevel 1 (
|
||||
echo [ERROR] Failed to initialize VS environment. Check the vcvarsall.bat path.
|
||||
exit /b 1
|
||||
)
|
||||
)
|
||||
|
||||
rem ──────────────────────────────────────────────────
|
||||
rem Configure or reconfigure with Meson
|
||||
rem ──────────────────────────────────────────────────
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue