23 lines
674 B
Batchfile
23 lines
674 B
Batchfile
@echo off
|
|
rem ===========================================================================
|
|
rem CMake clean script (MSVC 2022 / v143, C++17, x64)
|
|
rem
|
|
rem Usage: clean.bat <build-dir>
|
|
rem e.g. clean.bat build\X256_PS
|
|
rem
|
|
rem Encoding: keep this file ASCII-only (see msvc_env.bat).
|
|
rem ===========================================================================
|
|
setlocal
|
|
set "BUILD_DIR=%~1"
|
|
if "%BUILD_DIR%"=="" (
|
|
echo Usage: clean.bat ^<build-dir^>
|
|
exit /b 1
|
|
)
|
|
|
|
rem Load the MSVC 2022 environment (vcvarsall.bat + cl.exe existence check).
|
|
call "%~dp0msvc_env.bat"
|
|
if errorlevel 1 exit /b %errorlevel%
|
|
|
|
cmake --build "%BUILD_DIR%" --target clean
|
|
exit /b %errorlevel%
|