Skip to content

Commit 2e105cc

Browse files
author
Steve Lee (POWERSHELL HE/HIM) (from Dev Box)
committed
use vswhere
1 parent f44d4ea commit 2e105cc

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.pipelines/DSC-Official.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ extends:
125125
- pwsh: |
126126
Set-Location "$(Build.SourcesDirectory)/DSC"
127127
write-verbose -verbose (dir "$($env:PROGRAMFILES)\Microsoft Visual Studio\2022\Enterprise" -r clang.exe | out-string)
128+
$VSINSTALLDIR = $(vswhere.exe -latest -requires Microsoft.VisualStudio.Component.VC.Llvm.Clang -property installationPath)
129+
$VCINSTALLDIR = Join-Path $VSINSTALLDIR "VC"
130+
$LLVM_ROOT = Join-Path $VCINSTALLDIR "Tools\Llvm\x64"
131+
$Env:PATH += ";$LLVM_ROOT\bin"
132+
write-verbose -verbose (gcm clang.exe | out-string)
128133
./build.ps1 -Release -Architecture $(buildName) -SkipLinkCheck
129134
displayName: 'Build $(buildName)'
130135
env:

0 commit comments

Comments
 (0)