@@ -192,6 +192,7 @@ struct Builder {
192
192
rustfmt_release : String ,
193
193
llvm_tools_release : String ,
194
194
lldb_release : String ,
195
+ miri_release : String ,
195
196
196
197
input : PathBuf ,
197
198
output : PathBuf ,
@@ -207,6 +208,7 @@ struct Builder {
207
208
rustfmt_version : Option < String > ,
208
209
llvm_tools_version : Option < String > ,
209
210
lldb_version : Option < String > ,
211
+ miri_version : Option < String > ,
210
212
211
213
rust_git_commit_hash : Option < String > ,
212
214
cargo_git_commit_hash : Option < String > ,
@@ -215,6 +217,7 @@ struct Builder {
215
217
rustfmt_git_commit_hash : Option < String > ,
216
218
llvm_tools_git_commit_hash : Option < String > ,
217
219
lldb_git_commit_hash : Option < String > ,
220
+ miri_git_commit_hash : Option < String > ,
218
221
219
222
should_sign : bool ,
220
223
}
@@ -237,13 +240,14 @@ fn main() {
237
240
let output = PathBuf :: from ( args. next ( ) . unwrap ( ) ) ;
238
241
let date = args. next ( ) . unwrap ( ) ;
239
242
let rust_release = args. next ( ) . unwrap ( ) ;
243
+ let s3_address = args. next ( ) . unwrap ( ) ;
240
244
let cargo_release = args. next ( ) . unwrap ( ) ;
241
245
let rls_release = args. next ( ) . unwrap ( ) ;
242
246
let clippy_release = args. next ( ) . unwrap ( ) ;
247
+ let miri_release = args. next ( ) . unwrap ( ) ;
243
248
let rustfmt_release = args. next ( ) . unwrap ( ) ;
244
249
let llvm_tools_release = args. next ( ) . unwrap ( ) ;
245
250
let lldb_release = args. next ( ) . unwrap ( ) ;
246
- let s3_address = args. next ( ) . unwrap ( ) ;
247
251
248
252
// Do not ask for a passphrase while manually testing
249
253
let mut passphrase = String :: new ( ) ;
@@ -259,6 +263,7 @@ fn main() {
259
263
rustfmt_release,
260
264
llvm_tools_release,
261
265
lldb_release,
266
+ miri_release,
262
267
263
268
input,
264
269
output,
@@ -274,6 +279,7 @@ fn main() {
274
279
rustfmt_version : None ,
275
280
llvm_tools_version : None ,
276
281
lldb_version : None ,
282
+ miri_version : None ,
277
283
278
284
rust_git_commit_hash : None ,
279
285
cargo_git_commit_hash : None ,
@@ -282,6 +288,7 @@ fn main() {
282
288
rustfmt_git_commit_hash : None ,
283
289
llvm_tools_git_commit_hash : None ,
284
290
lldb_git_commit_hash : None ,
291
+ miri_git_commit_hash : None ,
285
292
286
293
should_sign,
287
294
} . build ( ) ;
@@ -297,6 +304,7 @@ impl Builder {
297
304
self . llvm_tools_version = self . version ( "llvm-tools" , "x86_64-unknown-linux-gnu" ) ;
298
305
// lldb is only built for macOS.
299
306
self . lldb_version = self . version ( "lldb" , "x86_64-apple-darwin" ) ;
307
+ self . miri_version = self . version ( "miri" , "x86_64-unknown-linux-gnu" ) ;
300
308
301
309
self . rust_git_commit_hash = self . git_commit_hash ( "rust" , "x86_64-unknown-linux-gnu" ) ;
302
310
self . cargo_git_commit_hash = self . git_commit_hash ( "cargo" , "x86_64-unknown-linux-gnu" ) ;
@@ -306,6 +314,7 @@ impl Builder {
306
314
self . llvm_tools_git_commit_hash = self . git_commit_hash ( "llvm-tools" ,
307
315
"x86_64-unknown-linux-gnu" ) ;
308
316
self . lldb_git_commit_hash = self . git_commit_hash ( "lldb" , "x86_64-unknown-linux-gnu" ) ;
317
+ self . miri_git_commit_hash = self . git_commit_hash ( "miri" , "x86_64-unknown-linux-gnu" ) ;
309
318
310
319
self . digest_and_sign ( ) ;
311
320
let manifest = self . build_manifest ( ) ;
@@ -516,6 +525,8 @@ impl Builder {
516
525
format ! ( "llvm-tools-{}-{}.tar.gz" , self . llvm_tools_release, target)
517
526
} else if component == "lldb" || component == "lldb-preview" {
518
527
format ! ( "lldb-{}-{}.tar.gz" , self . lldb_release, target)
528
+ } else if component == "miri" || component == "miri-preview" {
529
+ format ! ( "miri-{}-{}.tar.gz" , self . miri_release, target)
519
530
} else {
520
531
format ! ( "{}-{}-{}.tar.gz" , component, self . rust_release, target)
521
532
}
@@ -534,6 +545,8 @@ impl Builder {
534
545
& self . llvm_tools_version
535
546
} else if component == "lldb" || component == "lldb-preview" {
536
547
& self . lldb_version
548
+ } else if component == "miri" || component == "miri-preview" {
549
+ & self . miri_version
537
550
} else {
538
551
& self . rust_version
539
552
}
@@ -552,6 +565,8 @@ impl Builder {
552
565
& self . llvm_tools_git_commit_hash
553
566
} else if component == "lldb" || component == "lldb-preview" {
554
567
& self . lldb_git_commit_hash
568
+ } else if component == "miri" || component == "miri-preview" {
569
+ & self . miri_git_commit_hash
555
570
} else {
556
571
& self . rust_git_commit_hash
557
572
}
0 commit comments