From 28c788658ac17e6905c303aac0cb800cc0460786 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Sat, 18 Jul 2026 03:30:40 +0300 Subject: [PATCH] chatgui: Ninja + parallel build for Windows speedup --- tools/chatgui/build.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/chatgui/build.sh b/tools/chatgui/build.sh index c78b0068..1c2847dc 100755 --- a/tools/chatgui/build.sh +++ b/tools/chatgui/build.sh @@ -19,12 +19,13 @@ log "Build: $BUILD_DIR" log "" log "[1/4] Configuring CMake..." -cmake -S "$SRC_DIR" -B "$BUILD_DIR" -G "MSYS Makefiles" 2>&1 | tee -a "$LOG_FILE" +cmake -S "$SRC_DIR" -B "$BUILD_DIR" -G Ninja 2>&1 | tee -a "$LOG_FILE" test ${PIPESTATUS[0]} -eq 0 || { log "CMake configure FAILED"; exit 1; } log "" -log "[2/4] Building..." -cmake --build "$BUILD_DIR" 2>&1 | tee -a "$LOG_FILE" +JOBS=$(nproc 2>/dev/null || echo 4) +log "[2/4] Building (parallel: $JOBS jobs)..." +cmake --build "$BUILD_DIR" -j"$JOBS" 2>&1 | tee -a "$LOG_FILE" test ${PIPESTATUS[0]} -eq 0 || { log "Build FAILED"; exit 1; } log ""