We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2087b20 commit d107c42Copy full SHA for d107c42
win32/install.ps1
@@ -71,9 +71,15 @@ if ($Compiler -eq 'msvc2019') {
71
## hack to extract the environment from vcvarsall.bat
72
Remove-Item env:BUILD_SOURCEVERSIONMESSAGE
73
74
+# arch for the vcvars script includes the host when cross-compiling
75
+$vcarch = $env:arch
76
+if ($env:arch -eq 'arm64') {
77
+ $vcarch = "amd64_arm64"
78
+}
79
+
80
## ask cmd.exe to output the environment table after the batch file completes
81
$tempFile = [IO.Path]::GetTempFileName()
-cmd /c " `"$vcvars`" $env:arch && set > `"$tempFile`" "
82
+cmd /c " `"$vcvars`" $vcarch && set > `"$tempFile`" "
83
84
## go through the environment variables in the temp file.
85
## for each of them, set the variable in our local environment.
0 commit comments