mirror of
https://github.com/lobomfz/VIctory-xmem.git
synced 2026-12-06 05:48:38 +00:00
fix(build): reject incomplete Windows SDK
This commit is contained in:
3
build.sh
3
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)"
|
||||
|
||||
Reference in New Issue
Block a user