@@ -192,6 +192,7 @@ struct Builder {
192192 rustfmt_release : String ,
193193 llvm_tools_release : String ,
194194 lldb_release : String ,
195+ miri_release : String ,
195196
196197 input : PathBuf ,
197198 output : PathBuf ,
@@ -207,6 +208,7 @@ struct Builder {
207208 rustfmt_version : Option < String > ,
208209 llvm_tools_version : Option < String > ,
209210 lldb_version : Option < String > ,
211+ miri_version : Option < String > ,
210212
211213 rust_git_commit_hash : Option < String > ,
212214 cargo_git_commit_hash : Option < String > ,
@@ -215,6 +217,7 @@ struct Builder {
215217 rustfmt_git_commit_hash : Option < String > ,
216218 llvm_tools_git_commit_hash : Option < String > ,
217219 lldb_git_commit_hash : Option < String > ,
220+ miri_git_commit_hash : Option < String > ,
218221
219222 should_sign : bool ,
220223}
@@ -237,13 +240,14 @@ fn main() {
237240 let output = PathBuf :: from ( args. next ( ) . unwrap ( ) ) ;
238241 let date = args. next ( ) . unwrap ( ) ;
239242 let rust_release = args. next ( ) . unwrap ( ) ;
243+ let s3_address = args. next ( ) . unwrap ( ) ;
240244 let cargo_release = args. next ( ) . unwrap ( ) ;
241245 let rls_release = args. next ( ) . unwrap ( ) ;
242246 let clippy_release = args. next ( ) . unwrap ( ) ;
247+ let miri_release = args. next ( ) . unwrap ( ) ;
243248 let rustfmt_release = args. next ( ) . unwrap ( ) ;
244249 let llvm_tools_release = args. next ( ) . unwrap ( ) ;
245250 let lldb_release = args. next ( ) . unwrap ( ) ;
246- let s3_address = args. next ( ) . unwrap ( ) ;
247251
248252 // Do not ask for a passphrase while manually testing
249253 let mut passphrase = String :: new ( ) ;
@@ -259,6 +263,7 @@ fn main() {
259263 rustfmt_release,
260264 llvm_tools_release,
261265 lldb_release,
266+ miri_release,
262267
263268 input,
264269 output,
@@ -274,6 +279,7 @@ fn main() {
274279 rustfmt_version : None ,
275280 llvm_tools_version : None ,
276281 lldb_version : None ,
282+ miri_version : None ,
277283
278284 rust_git_commit_hash : None ,
279285 cargo_git_commit_hash : None ,
@@ -282,6 +288,7 @@ fn main() {
282288 rustfmt_git_commit_hash : None ,
283289 llvm_tools_git_commit_hash : None ,
284290 lldb_git_commit_hash : None ,
291+ miri_git_commit_hash : None ,
285292
286293 should_sign,
287294 } . build ( ) ;
@@ -297,6 +304,7 @@ impl Builder {
297304 self . llvm_tools_version = self . version ( "llvm-tools" , "x86_64-unknown-linux-gnu" ) ;
298305 // lldb is only built for macOS.
299306 self . lldb_version = self . version ( "lldb" , "x86_64-apple-darwin" ) ;
307+ self . miri_version = self . version ( "miri" , "x86_64-unknown-linux-gnu" ) ;
300308
301309 self . rust_git_commit_hash = self . git_commit_hash ( "rust" , "x86_64-unknown-linux-gnu" ) ;
302310 self . cargo_git_commit_hash = self . git_commit_hash ( "cargo" , "x86_64-unknown-linux-gnu" ) ;
@@ -306,6 +314,7 @@ impl Builder {
306314 self . llvm_tools_git_commit_hash = self . git_commit_hash ( "llvm-tools" ,
307315 "x86_64-unknown-linux-gnu" ) ;
308316 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" ) ;
309318
310319 self . digest_and_sign ( ) ;
311320 let manifest = self . build_manifest ( ) ;
@@ -516,6 +525,8 @@ impl Builder {
516525 format ! ( "llvm-tools-{}-{}.tar.gz" , self . llvm_tools_release, target)
517526 } else if component == "lldb" || component == "lldb-preview" {
518527 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)
519530 } else {
520531 format ! ( "{}-{}-{}.tar.gz" , component, self . rust_release, target)
521532 }
@@ -534,6 +545,8 @@ impl Builder {
534545 & self . llvm_tools_version
535546 } else if component == "lldb" || component == "lldb-preview" {
536547 & self . lldb_version
548+ } else if component == "miri" || component == "miri-preview" {
549+ & self . miri_version
537550 } else {
538551 & self . rust_version
539552 }
@@ -552,6 +565,8 @@ impl Builder {
552565 & self . llvm_tools_git_commit_hash
553566 } else if component == "lldb" || component == "lldb-preview" {
554567 & self . lldb_git_commit_hash
568+ } else if component == "miri" || component == "miri-preview" {
569+ & self . miri_git_commit_hash
555570 } else {
556571 & self . rust_git_commit_hash
557572 }
0 commit comments