Skip to content

Record your screen, ship a demo. Free and open-source, GPU-accelerated, no watermarks, no subscriptions. Windows, macOS, Linux. Actively maintained.

fix(build): keep argument boundaries in the whisper VS environment wrapper

Christian Schmittelab6d2514554a
diff --git a/scripts/build-whisper-stt.sh b/scripts/build-whisper-stt.sh
index a9d17576f..23b33ce3e 100644
--- a/scripts/build-whisper-stt.sh
+++ b/scripts/build-whisper-stt.sh
@@ -208,7 +208,11 @@ run_in_vs_env() {
printf 'set "PATH=%s;%%PATH%%"
' "$(cygpath -w "${llvm_bin}")"
fi
- echo "$*"
+ # One quoted word per argument: "$*" rejoins them with bare spaces, and a
+ # checkout under a path with a space in it reaches CMake split in two.
+ local arg line=""
+ for arg in "$@"; do line+="\"${arg}\" "; done
+ echo "${line}"
} > "${script}"
local status=0
cmd //c "$(cygpath -w "${script}")" || status=$?