Skip to content

Commit fdc1d2f

Browse files
authored
Merge pull request #75571 from rintaro/windows-clean
[Windows] Fix 'clean'
2 parents bd4827f + e1d4af5 commit fdc1d2f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

utils/build.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2299,9 +2299,9 @@ if (-not $SkipBuild) {
22992299
}
23002300

23012301
if ($Clean) {
2302-
10..27 | % { Remove-Item -Force -Recurse "$BinaryCache\$_" -ErrorAction Ignore }
2302+
10..[HostComponent].getEnumValues()[-1] | % { Remove-Item -Force -Recurse "$BinaryCache\$_" -ErrorAction Ignore }
23032303
foreach ($Arch in $WindowsSDKArchs) {
2304-
0..3 | % { Remove-Item -Force -Recurse "$BinaryCache\$($Arch.BuildID + $_)" -ErrorAction Ignore }
2304+
0..[TargetComponent].getEnumValues()[-1] | % { Remove-Item -Force -Recurse "$BinaryCache\$($Arch.BuildID + $_)" -ErrorAction Ignore }
23052305
}
23062306
}
23072307

0 commit comments

Comments
 (0)