Skip to content

Commit 33eab01

Browse files
authored
Merge pull request #78859 from compnerd/cleaning
utils: update build.ps1 to improve the `-Clean` option
2 parents dd9096a + ef0e596 commit 33eab01

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

utils/build.ps1

+5
Original file line numberDiff line numberDiff line change
@@ -2788,9 +2788,14 @@ if (-not $SkipBuild) {
27882788

27892789
if ($Clean) {
27902790
10..[HostComponent].getEnumValues()[-1] | ForEach-Object { Remove-Item -Force -Recurse "$BinaryCache\$_" -ErrorAction Ignore }
2791+
# In case of a previous test run, clear out the swiftmodules as they are not a stable format.
2792+
Remove-Item -Force -Recurse "$($HostARch.ToolchainInstallRoot)\usr\lib\swift\windows" -ErrorAction Ignore
27912793
foreach ($Arch in $WindowsSDKArchs) {
27922794
0..[TargetComponent].getEnumValues()[-1] | ForEach-Object { Remove-Item -Force -Recurse "$BinaryCache\$($Arch.BuildID + $_)" -ErrorAction Ignore }
27932795
}
2796+
foreach ($Arch in $AndroidSDKArchs) {
2797+
0..[TargetComponent].getEnumValues()[-1] | ForEach-Object { Remove-Item -Force -Recurse "$BinaryCache\$($Arch.BuildID + $_)" -ErrorAction Ignore }
2798+
}
27942799
}
27952800

27962801
if (-not $SkipBuild) {

0 commit comments

Comments
 (0)