fix(build): reject incomplete Windows SDK

This commit is contained in:
Tommie Hansen
2026-12-05 14:24:35 +01:00
parent 8b88a73a08
commit cd1b5d37bb

View File

@ -2,7 +2,8 @@
set -euo pipefail
source "$(dirname "$(readlink -f "$0")")/env.sh"
sdk=$root/deps/msvc
if [ ! -d "$sdk/VC" ]; then echo "no sdk: run $root/setup.sh sdk"; exit 1; fi
source "$root/tools/sdk.sh"
if ! sdk_ready "$sdk"; then echo "missing or incomplete sdk: run $root/setup.sh sdk"; exit 1; fi
# cargo and cc split RUSTFLAGS/CFLAGS on whitespace, so a space in the checkout path breaks /winsysroot
if [[ "$sdk" == *[[:space:]]* ]]; then
link="${XDG_CACHE_HOME:-$HOME/.cache}/victory-msvc-$(printf %s "$sdk" | sha1sum | cut -c1-8)"