Commit c28f5af
committed
build: selectively apply some static linking
Convert a few libraries to static linking. This results in a net size
reduction for the toolchain as a whole while also reducing the
distributed DLLs.
PackageModelSyntax Conversion:
~~~
Before:
6621696 sourcekit-lsp.exe
3844608 Commands.dll
144384 PackageModelSyntax.dll
-------
10610688
After:
6712320 sourcekit-lsp.exe
3950592 Commands.dll
--------
10662912
~~~
Savings: 52,224 bytes
SwiftSDKCommand Conversion:
~~~
Before:
23552 swift-sdk.exe
267776 SwiftSDKCommand.dll
------
291328
After:
265728 swift-sdk.exe
~~~
Savings: 25,600 bytes
CoreCommands Conversion:
~~~
Before:
3844608 Commands.dll
1065472 CoreCommands.dll
265728 swift-sdk.exe
-------
5175808
After:
4202496 Commands.dll
649728 swift-sdk.exe
-------
4852224
~~~
Savings: 323,584 bytes
DriverSupport Conversion:
~~~
Before:
945152 Build.dll
4202496 Commands.dll
49152 DriverSupport.dll
649728 swift-sdk.exe
-------
5846528
After:
958976 Build.dll
4217856 Commands.dll
669184 swift-sdk.exe
-------
5846016
~~~
Savings: 512 bytes
Net Savings: 401,920 bytes1 parent 4681cee commit c28f5af
File tree
3 files changed
+3
-19
lines changed- Sources
- CoreCommands
- DriverSupport
- SwiftSDKCommand
3 files changed
+3
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
0 commit comments