This commit is contained in:
Viktor Szakats 2025-08-17 22:10:49 +02:00
parent e0d27e7595
commit 0c69990174
No known key found for this signature in database
GPG key ID: B5ABD165E2AEF201

View file

@ -843,6 +843,11 @@ jobs:
# has no stable disk location, its an MS-DOS batch file setting env,
# and makes it problematic to use from this script.
[[ "$(uname -s)" = *'ARM64'* ]] && MSVC_HOST='arm64' || MSVC_HOST='x64' # x86
echo '-----------------------------------------'
/usr/bin/find '/c/Program Files/Microsoft Visual Studio' -type d
echo '-----------------------------------------'
/usr/bin/find '/c/Program Files(x86)/Windows Kits' -type d
echo '-----------------------------------------'
MSVC_ROOTD="$(cygpath --dos "$PROGRAMFILES/Microsoft Visual Studio")" # to avoid spaces
MSVC_ROOTU="$(/usr/bin/find "$(cygpath --unix "$MSVC_ROOTD/2022/Enterprise/vc/tools/msvc")" -mindepth 1 -maxdepth 1 -type d | head -n 1)"
MSVC_ROOTW="$(cygpath --windows "$MSVC_ROOTU")"