Skip to content

Commit 0f1bea8

Browse files
committed
utils: convert System to static
Build System as static as it has been internalised into SPM and no longer needs to be shared across multiple targets. This reduces the number of distributed files and helps reduce the binary size (~56KiB).
1 parent ea2c501 commit 0f1bea8

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

utils/build.ps1

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2182,19 +2182,14 @@ function Build-System($Arch) {
21822182
Build-CMakeProject `
21832183
-Src $SourceCache\swift-system `
21842184
-Bin (Get-HostProjectBinaryCache System) `
2185-
-InstallTo "$($Arch.ToolchainInstallRoot)\usr" `
21862185
-Arch $Arch `
21872186
-Platform Windows `
21882187
-UseBuiltCompilers C,Swift `
21892188
-SwiftSDK (Get-HostSwiftSDK) `
2189+
-BuildTargets default `
21902190
-Defines @{
2191-
BUILD_SHARED_LIBS = "YES";
2191+
BUILD_SHARED_LIBS = "NO";
21922192
}
2193-
2194-
if (-not $ToBatch) {
2195-
# Remove unnecessary "S:\Program Files\swift\Toolchains\0.0.0+Asserts\usr\include\CSystem"
2196-
Remove-Item -Force -Recurse "$($Arch.ToolchainInstallRoot)\usr\include\CSystem" -ErrorAction Ignore | Out-Null
2197-
}
21982193
}
21992194

22002195
function Build-ToolsSupportCore($Arch) {

0 commit comments

Comments
 (0)