@@ -46,67 +46,11 @@ enum ArtifactOS: Hashable {
46
46
47
47
typealias CPUMapping = [ Triple . CPU : String ]
48
48
49
- /// SHA256 hashes of binary LLVM artifacts known to the generator.
50
- private let knownLLVMBinariesVersions : [ ArtifactOS : [ String : CPUMapping ] ] = [
51
- . macOS: [
52
- " 15.0.7 " : [
53
- Triple . CPU. arm64: " 867c6afd41158c132ef05a8f1ddaecf476a26b91c85def8e124414f9a9ba188d " ,
54
- ] ,
55
- " 16.0.0 " : [
56
- Triple . CPU. arm64: " 2041587b90626a4a87f0de14a5842c14c6c3374f42c8ed12726ef017416409d9 " ,
57
- ] ,
58
- " 16.0.1 " : [
59
- Triple . CPU. arm64: " cb487fa991f047dc79ae36430cbb9ef14621c1262075373955b1d97215c75879 " ,
60
- ] ,
61
- " 16.0.4 " : [
62
- Triple . CPU. arm64: " 429b8061d620108fee636313df55a0602ea0d14458c6d3873989e6b130a074bd " ,
63
- ] ,
64
- " 16.0.5 " : [
65
- Triple . CPU. arm64: " 1aed0787417dd915f0101503ce1d2719c8820a2c92d4a517bfc4044f72035bcc " ,
66
- ] ,
67
- ] ,
68
- ]
69
-
70
- /// SHA256 hashes of binary Swift artifacts known to the generator.
71
- private let knownSwiftBinariesVersions : [ ArtifactOS : [ String : CPUMapping ] ] = [
72
- . linux( . ubuntu( . jammy) ) : [
73
- " 5.7.3-RELEASE " : [
74
- . arm64: " 75003d5a995292ae3f858b767fbb89bc3edee99488f4574468a0e44341aec55b " ,
75
- ] ,
76
- " 5.8-RELEASE " : [
77
- . arm64: " 12ea2df36f9af0aefa74f0989009683600978f62223e7dd73b627c90c7fe9273 " ,
78
- ] ,
79
- " 5.9-RELEASE " : [
80
- . arm64: " 30b289e02f7e03c380744ea97fdf0e96985dff504b0f09de23e098fdaf6513f3 " ,
81
- . x86_64: " bca015e9d727ca39385d7e5b5399f46302d54a02218d40d1c3063662ffc6b42f " ,
82
- ] ,
83
- ] ,
84
- . macOS: [
85
- " 5.7.3-RELEASE " : [
86
- . arm64: " ba3516845eb8f4469a8bb06a273687f05791187324a3843996af32a73a2a687d " ,
87
- . x86_64: " ba3516845eb8f4469a8bb06a273687f05791187324a3843996af32a73a2a687d " ,
88
- ] ,
89
- " 5.8-RELEASE " : [
90
- . arm64: " 9b6cc56993652ca222c86a2d6b7b66abbd50bb92cc526efc2b23d47d40002097 " ,
91
- . x86_64: " 9b6cc56993652ca222c86a2d6b7b66abbd50bb92cc526efc2b23d47d40002097 " ,
92
- ] ,
93
- " 5.9-RELEASE " : [
94
- . arm64: " 3cf7a4b2f3efcfcb4fef42b6588a7b1c54f7b0f2d0a479f41c3e1620b045f48e " ,
95
- . x86_64: " 3cf7a4b2f3efcfcb4fef42b6588a7b1c54f7b0f2d0a479f41c3e1620b045f48e " ,
96
- ] ,
97
- ] ,
98
- ]
99
-
100
- private let knownLLVMSourcesVersions : [ String : String ] = [
101
- " 16.0.5 " : " 37f540124b9cfd4680666e649f557077f9937c9178489cea285a672e714b2863 " ,
102
- ]
103
-
104
49
struct DownloadableArtifacts : Sendable {
105
50
@CacheKey
106
51
struct Item : Sendable {
107
52
let remoteURL : URL
108
53
var localPath : FilePath
109
- let checksum : String ?
110
54
let isPrebuilt : Bool
111
55
}
112
56
@@ -145,7 +89,6 @@ struct DownloadableArtifacts: Sendable {
145
89
) ,
146
90
localPath: paths. artifactsCachePath
147
91
. appending ( " host_swift_ \( versions. swiftVersion) _ \( hostTriple) .pkg " ) ,
148
- checksum: knownSwiftBinariesVersions [ hostArtifactsOS] ? [ versions. swiftVersion] ? [ hostTriple. cpu] ,
149
92
isPrebuilt: true
150
93
)
151
94
@@ -161,7 +104,6 @@ struct DownloadableArtifacts: Sendable {
161
104
) !,
162
105
localPath: paths. artifactsCachePath
163
106
. appending ( " host_llvm_ \( versions. lldVersion) _ \( hostTriple) .tar.xz " ) ,
164
- checksum: knownLLVMBinariesVersions [ hostArtifactsOS] ? [ versions. lldVersion] ? [ hostTriple. cpu] ,
165
107
isPrebuilt: true
166
108
)
167
109
@@ -170,7 +112,6 @@ struct DownloadableArtifacts: Sendable {
170
112
remoteURL: versions. swiftDownloadURL ( ) ,
171
113
localPath: paths. artifactsCachePath
172
114
. appending ( " target_swift_ \( versions. swiftVersion) _ \( targetTriple) .tar.gz " ) ,
173
- checksum: knownSwiftBinariesVersions [ targetArtifactsOS] ? [ versions. swiftVersion] ? [ targetTriple. cpu] ,
174
115
isPrebuilt: true
175
116
)
176
117
@@ -190,7 +131,6 @@ struct DownloadableArtifacts: Sendable {
190
131
) !,
191
132
localPath: self . paths. artifactsCachePath
192
133
. appending ( " llvm_ \( self . versions. lldVersion) .src.tar.xz " ) ,
193
- checksum: knownLLVMSourcesVersions [ self . versions. lldVersion] ,
194
134
isPrebuilt: false
195
135
)
196
136
}
0 commit comments