Skip to content

Commit

Permalink
Fix VS2022 testing of the compilers. (microsoft#23826)
Browse files Browse the repository at this point in the history
* Workaround GetChildItem returning a non-array when there's only one result.

* Apply Nicole's code review comment.
  • Loading branch information
BillyONeal authored Mar 29, 2022
1 parent 5f62686 commit 773516e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Move-Item "$DropRoot\binaries.x86$BuildType\atlmfc\include" "$tempRoot\atlmfc\in
Move-Item "$DropRoot\binaries.x86$BuildType\atlmfc\lib\i386" "$tempRoot\atlmfc\lib\x86"
Move-Item "$DropRoot\binaries.amd64$BuildType\atlmfc\lib\amd64" "$tempRoot\atlmfc\lib\x64"

$toolsets = Get-ChildItem -Path $MSVCRoot -Directory | Sort-Object -Descending
[string[]]$toolsets = Get-ChildItem -Path $MSVCRoot -Directory | Sort-Object -Descending
if ($toolsets.Length -eq 0) {
throw "Could not find Visual Studio toolset!"
}
Expand Down

0 comments on commit 773516e

Please sign in to comment.