fix(build): build.bat rebuild 块改纯 ASCII(中文注释致 cmd GBK 解析崩 'ld'/'此时不应有 build')

This commit is contained in:
gaozheng 2026-06-16 09:46:01 +08:00
parent a5e4f04bd9
commit 29710a8484
1 changed files with 3 additions and 3 deletions

View File

@ -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"