Skip to content

Commit 365da5f

Browse files
authored
Merge pull request #72711 from hjyamauchi/hiroshi/buildps1a
Remove unnecessary /usr/include/CSystem directory to avoid build errors
2 parents ee24bdf + 45f5cff commit 365da5f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

utils/build.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,6 +1536,11 @@ function Build-System($Arch) {
15361536
-Defines @{
15371537
BUILD_SHARED_LIBS = "YES";
15381538
}
1539+
1540+
if (-not $ToBatch) {
1541+
# Remove unnecessary "S:\Program Files\swift\Toolchains\0.0.0+Asserts\usr\include\CSystem"
1542+
Remove-Item -Force -Recurse "$($Arch.ToolchainInstallRoot)\usr\include\CSystem" -ErrorAction Ignore | Out-Null
1543+
}
15391544
}
15401545

15411546
function Build-ToolsSupportCore($Arch) {

0 commit comments

Comments
 (0)