From da0a362d833ef0150196032cb0894e42deed6c73 Mon Sep 17 00:00:00 2001 From: Steve Pfister Date: Fri, 15 Apr 2022 15:47:14 -0400 Subject: [PATCH] Try another way --- llvm.proj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm.proj b/llvm.proj index 5bab0add9dd82b..291c93ab7d7677 100644 --- a/llvm.proj +++ b/llvm.proj @@ -10,12 +10,12 @@ <_VCVarsScriptName Condition="'$(BuildOS)' == 'Windows_NT' and '$(TargetArchitecture)' == 'arm'">vcvarsamd64_arm.bat <_SetupEnvironment Condition="'$(BuildOS)' == 'Windows_NT'"> :: VisualStudio includes vswhere.exe that can be used to locate current VisualStudio installation. - set VSWHERE_TOOLS_BIN=%ProgramFiles%\Microsoft Visual Studio\Installer\vswhere.exe + set VSWHERE_TOOLS_BIN=%ProgramFiles(x86)%\Microsoft Visual Studio\Installer\vswhere.exe set VS_VCINSTALL_DIR= :: Try to locate installed VisualStudio VC environment. if "%VCINSTALLDIR%" == "" if exist "%VSWHERE_TOOLS_BIN%" ( - for /f "tokens=*" %%a in ('"%VSWHERE_TOOLS_BIN%" -latest -property installationPath') do ( + for /f "tokens=*" %%a in ('"%VSWHERE_TOOLS_BIN%" -prerelease -property installationPath') do ( set VS_VCINSTALL_DIR=%%a\VC\ ) )