Skip to content

Commit e006f30

Browse files
authored
generator/linux: Exclude more unneeded platforms from the toolchain (#161)
These changes reduce the size of the SDK by 450MB. Not having to extract and copy this data around slightly speeds up the process of building an SDK. On my machine * Building a Swift 6.0 aarch64 SDK decreased from 23s to 22s * Running the EndToEndTests decreased from 32m39s to 32m17s The EndToEndTests continue to pass after this change.
1 parent 4c5d1a9 commit e006f30

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

Sources/SwiftSDKGenerator/Generator/SwiftSDKGenerator+Unpack.swift

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,23 @@ import Helpers
1515
import struct SystemPackage.FilePath
1616

1717
let unusedDarwinPlatforms = [
18-
"watchsimulator",
19-
"iphonesimulator",
18+
"appletvos",
2019
"appletvsimulator",
20+
"embedded",
2121
"iphoneos",
22+
"iphonesimulator",
2223
"watchos",
23-
"appletvos",
24+
"watchsimulator",
25+
"xros",
26+
"xrsimulator",
2427
]
2528

2629
let unusedHostBinaries = [
2730
"clangd",
2831
"docc",
2932
"dsymutil",
3033
"sourcekit-lsp",
34+
"swift-format",
3135
"swift-package",
3236
"swift-package-collection",
3337
]

0 commit comments

Comments
 (0)