devops(windows): fix vswhere location (#4636)
%PROGRAMFILES% locations depends on shell bitness; we're migrating from mingw32 to mingw64.
This commit is contained in:
parent
99b98d62a6
commit
c1dcef39a3
|
|
@ -78,7 +78,7 @@ createZipForLinux() {
|
||||||
|
|
||||||
# see https://docs.microsoft.com/en-us/visualstudio/install/tools-for-managing-visual-studio-instances?view=vs-2019
|
# see https://docs.microsoft.com/en-us/visualstudio/install/tools-for-managing-visual-studio-instances?view=vs-2019
|
||||||
printMSVCRedistDir() {
|
printMSVCRedistDir() {
|
||||||
local dll_file=$("$PROGRAMFILES\Microsoft Visual Studio\Installer\vswhere.exe" -latest -find '**\Redist\MSVC\*\x64\**\vcruntime140.dll')
|
local dll_file=$("C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe" -latest -find '**\Redist\MSVC\*\x64\**\vcruntime140.dll')
|
||||||
local redist_dir=$(dirname "$dll_file")
|
local redist_dir=$(dirname "$dll_file")
|
||||||
if ! [[ -d $redist_dir ]]; then
|
if ! [[ -d $redist_dir ]]; then
|
||||||
echo "ERROR: cannot find MS VS C++ redistributable $redist_dir"
|
echo "ERROR: cannot find MS VS C++ redistributable $redist_dir"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue