From 29710a84843ffcd2a4f6743651e52d33a291d390 Mon Sep 17 00:00:00 2001 From: gaozheng Date: Tue, 16 Jun 2026 09:46:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(build):=20build.bat=20rebuild=20=E5=9D=97?= =?UTF-8?q?=E6=94=B9=E7=BA=AF=20ASCII(=E4=B8=AD=E6=96=87=E6=B3=A8=E9=87=8A?= =?UTF-8?q?=E8=87=B4=20cmd=20GBK=20=E8=A7=A3=E6=9E=90=E5=B4=A9=20'ld'/'?= =?UTF-8?q?=E6=AD=A4=E6=97=B6=E4=B8=8D=E5=BA=94=E6=9C=89=20build')?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.bat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"