@@ -184,6 +184,7 @@ struct Builder {
184
184
cargo_release : String ,
185
185
rls_release : String ,
186
186
rustfmt_release : String ,
187
+ llvm_tools_release : String ,
187
188
188
189
input : PathBuf ,
189
190
output : PathBuf ,
@@ -196,11 +197,13 @@ struct Builder {
196
197
cargo_version : Option < String > ,
197
198
rls_version : Option < String > ,
198
199
rustfmt_version : Option < String > ,
200
+ llvm_tools_version : Option < String > ,
199
201
200
202
rust_git_commit_hash : Option < String > ,
201
203
cargo_git_commit_hash : Option < String > ,
202
204
rls_git_commit_hash : Option < String > ,
203
205
rustfmt_git_commit_hash : Option < String > ,
206
+ llvm_tools_git_commit_hash : Option < String > ,
204
207
}
205
208
206
209
fn main ( ) {
@@ -212,7 +215,7 @@ fn main() {
212
215
let cargo_release = args. next ( ) . unwrap ( ) ;
213
216
let rls_release = args. next ( ) . unwrap ( ) ;
214
217
let rustfmt_release = args. next ( ) . unwrap ( ) ;
215
- let _llvm_tools_vers = args. next ( ) . unwrap ( ) ; // FIXME do something with it?
218
+ let llvm_tools_release = args. next ( ) . unwrap ( ) ;
216
219
let s3_address = args. next ( ) . unwrap ( ) ;
217
220
let mut passphrase = String :: new ( ) ;
218
221
t ! ( io:: stdin( ) . read_to_string( & mut passphrase) ) ;
@@ -222,6 +225,7 @@ fn main() {
222
225
cargo_release,
223
226
rls_release,
224
227
rustfmt_release,
228
+ llvm_tools_release,
225
229
226
230
input,
227
231
output,
@@ -234,11 +238,13 @@ fn main() {
234
238
cargo_version : None ,
235
239
rls_version : None ,
236
240
rustfmt_version : None ,
241
+ llvm_tools_version : None ,
237
242
238
243
rust_git_commit_hash : None ,
239
244
cargo_git_commit_hash : None ,
240
245
rls_git_commit_hash : None ,
241
246
rustfmt_git_commit_hash : None ,
247
+ llvm_tools_git_commit_hash : None ,
242
248
} . build ( ) ;
243
249
}
244
250
@@ -248,11 +254,14 @@ impl Builder {
248
254
self . cargo_version = self . version ( "cargo" , "x86_64-unknown-linux-gnu" ) ;
249
255
self . rls_version = self . version ( "rls" , "x86_64-unknown-linux-gnu" ) ;
250
256
self . rustfmt_version = self . version ( "rustfmt" , "x86_64-unknown-linux-gnu" ) ;
257
+ self . llvm_tools_version = self . version ( "llvm-tools" , "x86_64-unknown-linux-gnu" ) ;
251
258
252
259
self . rust_git_commit_hash = self . git_commit_hash ( "rust" , "x86_64-unknown-linux-gnu" ) ;
253
260
self . cargo_git_commit_hash = self . git_commit_hash ( "cargo" , "x86_64-unknown-linux-gnu" ) ;
254
261
self . rls_git_commit_hash = self . git_commit_hash ( "rls" , "x86_64-unknown-linux-gnu" ) ;
255
262
self . rustfmt_git_commit_hash = self . git_commit_hash ( "rustfmt" , "x86_64-unknown-linux-gnu" ) ;
263
+ self . llvm_tools_git_commit_hash = self . git_commit_hash ( "llvm-tools" ,
264
+ "x86_64-unknown-linux-gnu" ) ;
256
265
257
266
self . digest_and_sign ( ) ;
258
267
let manifest = self . build_manifest ( ) ;
@@ -289,9 +298,11 @@ impl Builder {
289
298
self . package ( "rls-preview" , & mut manifest. pkg , HOSTS ) ;
290
299
self . package ( "rustfmt-preview" , & mut manifest. pkg , HOSTS ) ;
291
300
self . package ( "rust-analysis" , & mut manifest. pkg , TARGETS ) ;
301
+ self . package ( "llvm-tools" , & mut manifest. pkg , TARGETS ) ;
292
302
293
303
let rls_present = manifest. pkg . contains_key ( "rls-preview" ) ;
294
304
let rustfmt_present = manifest. pkg . contains_key ( "rustfmt-preview" ) ;
305
+ let llvm_tools_present = manifest. pkg . contains_key ( "llvm-tools" ) ;
295
306
296
307
if rls_present {
297
308
manifest. renames . insert ( "rls" . to_owned ( ) , Rename { to : "rls-preview" . to_owned ( ) } ) ;
@@ -346,6 +357,12 @@ impl Builder {
346
357
target : host. to_string ( ) ,
347
358
} ) ;
348
359
}
360
+ if llvm_tools_present {
361
+ extensions. push ( Component {
362
+ pkg : "llvm-tools" . to_string ( ) ,
363
+ target : host. to_string ( ) ,
364
+ } ) ;
365
+ }
349
366
extensions. push ( Component {
350
367
pkg : "rust-analysis" . to_string ( ) ,
351
368
target : host. to_string ( ) ,
@@ -455,6 +472,8 @@ impl Builder {
455
472
format ! ( "rls-{}-{}.tar.gz" , self . rls_release, target)
456
473
} else if component == "rustfmt" || component == "rustfmt-preview" {
457
474
format ! ( "rustfmt-{}-{}.tar.gz" , self . rustfmt_release, target)
475
+ } else if component == "llvm_tools" {
476
+ format ! ( "llvm-tools-{}-{}.tar.gz" , self . llvm_tools_release, target)
458
477
} else {
459
478
format ! ( "{}-{}-{}.tar.gz" , component, self . rust_release, target)
460
479
}
@@ -467,6 +486,8 @@ impl Builder {
467
486
& self . rls_version
468
487
} else if component == "rustfmt" || component == "rustfmt-preview" {
469
488
& self . rustfmt_version
489
+ } else if component == "llvm-tools" {
490
+ & self . llvm_tools_version
470
491
} else {
471
492
& self . rust_version
472
493
}
@@ -479,6 +500,8 @@ impl Builder {
479
500
& self . rls_git_commit_hash
480
501
} else if component == "rustfmt" || component == "rustfmt-preview" {
481
502
& self . rustfmt_git_commit_hash
503
+ } else if component == "llvm-tools" {
504
+ & self . llvm_tools_git_commit_hash
482
505
} else {
483
506
& self . rust_git_commit_hash
484
507
}
0 commit comments