mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 03:59:02 +08:00
Fix VS2022 testing of the compilers. (#23826)
* Workaround GetChildItem returning a non-array when there's only one result. * Apply Nicole's code review comment.
This commit is contained in:
parent
5f62686b96
commit
773516ecf6
@ -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!"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user