chatgui: Ninja + parallel build for Windows speedup

This commit is contained in:
Evgeny committed 2026-07-18 03:30:40 +03:00
1 parent a24955a566
commit c4b3fa10f1
1 file changed
+4 -3
+4 -3
View File
@@ -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 ""