Skip to content

Commit ef0e596

Browse files
committed
utils: update build.ps1 to improve the -Clean option
Clear out the android builds as well as any leftovers from a previous test run which would possibly break the build in the case that the compiler was updated.
1 parent 74a8c58 commit ef0e596

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
@@ -2792,9 +2792,14 @@ if (-not $SkipBuild) {
27922792

27932793
if ($Clean) {
27942794
10..[HostComponent].getEnumValues()[-1] | ForEach-Object { Remove-Item -Force -Recurse "$BinaryCache\$_" -ErrorAction Ignore }
2795+
# In case of a previous test run, clear out the swiftmodules as they are not a stable format.
2796+
Remove-Item -Force -Recurse "$($HostARch.ToolchainInstallRoot)\usr\lib\swift\windows" -ErrorAction Ignore
27952797
foreach ($Arch in $WindowsSDKArchs) {
27962798
0..[TargetComponent].getEnumValues()[-1] | ForEach-Object { Remove-Item -Force -Recurse "$BinaryCache\$($Arch.BuildID + $_)" -ErrorAction Ignore }
27972799
}
2800+
foreach ($Arch in $AndroidSDKArchs) {
2801+
0..[TargetComponent].getEnumValues()[-1] | ForEach-Object { Remove-Item -Force -Recurse "$BinaryCache\$($Arch.BuildID + $_)" -ErrorAction Ignore }
2802+
}
27982803
}
27992804

28002805
if (-not $SkipBuild) {

0 commit comments

Comments
 (0)