Skip to content

Commit

Permalink
Try another way
Browse files Browse the repository at this point in the history
  • Loading branch information
Steve Pfister committed Apr 15, 2022
1 parent a5bb0be commit da0a362
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions llvm.proj
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
<_VCVarsScriptName Condition="'$(BuildOS)' == 'Windows_NT' and '$(TargetArchitecture)' == 'arm'">vcvarsamd64_arm.bat</_VCVarsScriptName>
<_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\
)
)
Expand Down

0 comments on commit da0a362

Please sign in to comment.