From cd1b5d37bbfe469b18ab955f6aeb3c45473283cb Mon Sep 17 00:00:00 2001 From: Tommie Hansen Date: Sat, 5 Dec 2026 14:24:35 +0100 Subject: [PATCH] fix(build): reject incomplete Windows SDK --- build.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.sh b/build.sh index 63c00db1..5e87334b 100755 --- a/build.sh +++ b/build.sh @@ -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)"