File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -124,11 +124,11 @@ extends:
124
124
ob_restore_phase : true
125
125
- pwsh : |
126
126
Set-Location "$(Build.SourcesDirectory)/DSC"
127
- 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 "
127
+ $LLVMBIN = "$($env:PROGRAMFILES)\Microsoft Visual Studio\2022\Enterprise\VC\Tools\Llvm\bin"
128
+ if (!Test-Path $LLVMBIN) {
129
+ throw "LLVM path '$LLVMBIN' does not exist "
130
+ }
131
+ $env :PATH += ";$LLVMBIN "
132
132
write-verbose -verbose (gcm clang.exe | out-string)
133
133
./build.ps1 -Release -Architecture $(buildName) -SkipLinkCheck
134
134
displayName: 'Build $(buildName)'
You can’t perform that action at this time.
0 commit comments