diff --git a/build.bat b/build.bat index 375a495..1e23b5e 100644 --- a/build.bat +++ b/build.bat @@ -7,7 +7,7 @@ REM app (default) build target geopro_desktop (incremental) REM all build all targets (incremental) REM test build + run unit tests via ctest REM run incremental build + launch geopro_desktop -REM rebuild FORCE clean rebuild (--clean-first) + launch — use when +REM rebuild FORCE clean rebuild (--clean-first) + launch - use when REM incremental seems stale / changes not showing up REM configure force re-run CMake configure (after CMakeLists changes) REM @@ -85,8 +85,8 @@ call :ensure exit /b %errorlevel% :rebuild -REM 强制全量重编(--clean-first 先清后编),规避 ninja 增量偶发漏编;编后启动。 -REM 注意:若 geopro_desktop 正在运行,链接会因 exe 被占用失败(LNK1104)——先关掉 app。 +REM Force full clean rebuild (--clean-first) then launch; avoids flaky ninja incremental. +REM If geopro_desktop is already running, link fails (LNK1104, exe locked) - close it first. call :ensure "%CMAKE%" --build "%BUILDDIR%" --target geopro_desktop --clean-first || exit /b 1 "%BUILDDIR%\src\app\geopro_desktop.exe"