@@ -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,13 @@ 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" , "x86_64-unknown-linux-gnu" ) ;
256
264
257
265
self . digest_and_sign ( ) ;
258
266
let manifest = self . build_manifest ( ) ;
@@ -289,9 +297,11 @@ impl Builder {
289
297
self . package ( "rls-preview" , & mut manifest. pkg , HOSTS ) ;
290
298
self . package ( "rustfmt-preview" , & mut manifest. pkg , HOSTS ) ;
291
299
self . package ( "rust-analysis" , & mut manifest. pkg , TARGETS ) ;
300
+ self . package ( "llvm-tools" , & mut manifest. pkg , TARGETS ) ;
292
301
293
302
let rls_present = manifest. pkg . contains_key ( "rls-preview" ) ;
294
303
let rustfmt_present = manifest. pkg . contains_key ( "rustfmt-preview" ) ;
304
+ let llvm_tools_present = manifest. pkg . contains_key ( "llvm-tools" ) ;
295
305
296
306
if rls_present {
297
307
manifest. renames . insert ( "rls" . to_owned ( ) , Rename { to : "rls-preview" . to_owned ( ) } ) ;
@@ -346,6 +356,12 @@ impl Builder {
346
356
target : host. to_string ( ) ,
347
357
} ) ;
348
358
}
359
+ if llvm_tools_present {
360
+ extensions. push ( Component {
361
+ pkg : "llvm-tools" . to_string ( ) ,
362
+ target : host. to_string ( ) ,
363
+ } ) ;
364
+ }
349
365
extensions. push ( Component {
350
366
pkg : "rust-analysis" . to_string ( ) ,
351
367
target : host. to_string ( ) ,
@@ -455,6 +471,8 @@ impl Builder {
455
471
format ! ( "rls-{}-{}.tar.gz" , self . rls_release, target)
456
472
} else if component == "rustfmt" || component == "rustfmt-preview" {
457
473
format ! ( "rustfmt-{}-{}.tar.gz" , self . rustfmt_release, target)
474
+ } else if component == "llvm_tools" {
475
+ format ! ( "llvm-tools-{}-{}.tar.gz" , self . llvm_tools_release, target)
458
476
} else {
459
477
format ! ( "{}-{}-{}.tar.gz" , component, self . rust_release, target)
460
478
}
@@ -467,6 +485,8 @@ impl Builder {
467
485
& self . rls_version
468
486
} else if component == "rustfmt" || component == "rustfmt-preview" {
469
487
& self . rustfmt_version
488
+ } else if component == "llvm-tools" {
489
+ & self . llvm_tools_version
470
490
} else {
471
491
& self . rust_version
472
492
}
@@ -479,6 +499,8 @@ impl Builder {
479
499
& self . rls_git_commit_hash
480
500
} else if component == "rustfmt" || component == "rustfmt-preview" {
481
501
& self . rustfmt_git_commit_hash
502
+ } else if component == "llvm-tools" {
503
+ & self . llvm_tools_git_commit_hash
482
504
} else {
483
505
& self . rust_git_commit_hash
484
506
}
0 commit comments