Skip to content

Commit a9df0bd

Browse files
authored
Merge pull request #81008 from compnerd/clean
utils: make `-Clean` be fully clean
2 parents 9a98784 + 3f11375 commit a9df0bd

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

utils/build.ps1

+4-5
Original file line numberDiff line numberDiff line change
@@ -3190,18 +3190,17 @@ try {
31903190
Get-Dependencies
31913191

31923192
if ($Clean) {
3193+
Remove-Item -Force -Recurse -Path "$BinaryCache\$($BuildPlatform.Triple)\" -ErrorAction Ignore
31933194
Remove-Item -Force -Recurse -Path "$BinaryCache\$($HostPlatform.Triple)\" -ErrorAction Ignore
3194-
3195-
# In case of a previous test run, clear out the swiftmodules as they are not a stable format.
3196-
Remove-Item -Force -Recurse -Path "$($HostPlatform.ToolchainInstallRoot)\usr\lib\swift\windows\*.swiftmodule" -ErrorAction Ignore
31973195
foreach ($Platform in $WindowsSDKPlatforms) {
31983196
Remove-Item -Force -Recurse -Path "$BinaryCache\$($Platform.Triple)\" -ErrorAction Ignore
31993197
}
32003198
foreach ($Platform in $AndroidSDKPlatforms) {
32013199
Remove-Item -Force -Recurse -Path "$BinaryCache\$($Platform.Triple)\" -ErrorAction Ignore
32023200
}
3203-
3204-
Remove-Item -Force -Recurse ([IO.Path]::Combine((Get-InstallDir $HostPlatform), "Runtimes", $ProductVersion)) -ErrorAction Ignore
3201+
Remove-Item -Force -Recurse -Path "$BinaryCache\1" -ErrorAction Ignore
3202+
Remove-Item -Force -Recurse -Path "$BinaryCache\5" -ErrorAction Ignore
3203+
Remove-Item -Force -Recurse -Path (Get-InstallDir $HostPlatform) -ErrorAction Ignore
32053204
}
32063205

32073206
if (-not $SkipBuild) {

0 commit comments

Comments
 (0)