@@ -1427,7 +1427,7 @@ impl Step for Extended {
1427
1427
1428
1428
let xform = |p : & Path | {
1429
1429
let mut contents = t ! ( fs:: read_to_string( p) ) ;
1430
- for tool in & [ "rust-demangler" ] {
1430
+ for tool in & [ "rust-demangler" , "miri" ] {
1431
1431
if !built_tools. contains ( tool) {
1432
1432
contents = filter ( & contents, tool) ;
1433
1433
}
@@ -1467,9 +1467,8 @@ impl Step for Extended {
1467
1467
prepare ( "rust-std" ) ;
1468
1468
prepare ( "rust-analysis" ) ;
1469
1469
prepare ( "clippy" ) ;
1470
- prepare ( "miri" ) ;
1471
1470
prepare ( "rust-analyzer" ) ;
1472
- for tool in & [ "rust-docs" , "rust-demangler" ] {
1471
+ for tool in & [ "rust-docs" , "rust-demangler" , "miri" ] {
1473
1472
if built_tools. contains ( tool) {
1474
1473
prepare ( tool) ;
1475
1474
}
@@ -1528,9 +1527,8 @@ impl Step for Extended {
1528
1527
prepare ( "rust-docs" ) ;
1529
1528
prepare ( "rust-std" ) ;
1530
1529
prepare ( "clippy" ) ;
1531
- prepare ( "miri" ) ;
1532
1530
prepare ( "rust-analyzer" ) ;
1533
- for tool in & [ "rust-demangler" ] {
1531
+ for tool in & [ "rust-demangler" , "miri" ] {
1534
1532
if built_tools. contains ( tool) {
1535
1533
prepare ( tool) ;
1536
1534
}
@@ -1667,23 +1665,25 @@ impl Step for Extended {
1667
1665
. arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) ,
1668
1666
) ;
1669
1667
}
1670
- builder. run (
1671
- Command :: new ( & heat)
1672
- . current_dir ( & exe)
1673
- . arg ( "dir" )
1674
- . arg ( "miri" )
1675
- . args ( & heat_flags)
1676
- . arg ( "-cg" )
1677
- . arg ( "MiriGroup" )
1678
- . arg ( "-dr" )
1679
- . arg ( "Miri" )
1680
- . arg ( "-var" )
1681
- . arg ( "var.MiriDir" )
1682
- . arg ( "-out" )
1683
- . arg ( exe. join ( "MiriGroup.wxs" ) )
1684
- . arg ( "-t" )
1685
- . arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) ,
1686
- ) ;
1668
+ if built_tools. contains ( "miri" ) {
1669
+ builder. run (
1670
+ Command :: new ( & heat)
1671
+ . current_dir ( & exe)
1672
+ . arg ( "dir" )
1673
+ . arg ( "miri" )
1674
+ . args ( & heat_flags)
1675
+ . arg ( "-cg" )
1676
+ . arg ( "MiriGroup" )
1677
+ . arg ( "-dr" )
1678
+ . arg ( "Miri" )
1679
+ . arg ( "-var" )
1680
+ . arg ( "var.MiriDir" )
1681
+ . arg ( "-out" )
1682
+ . arg ( exe. join ( "MiriGroup.wxs" ) )
1683
+ . arg ( "-t" )
1684
+ . arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) ,
1685
+ ) ;
1686
+ }
1687
1687
builder. run (
1688
1688
Command :: new ( & heat)
1689
1689
. current_dir ( & exe)
@@ -1731,7 +1731,6 @@ impl Step for Extended {
1731
1731
. arg ( "-dStdDir=rust-std" )
1732
1732
. arg ( "-dAnalysisDir=rust-analysis" )
1733
1733
. arg ( "-dClippyDir=clippy" )
1734
- . arg ( "-dMiriDir=miri" )
1735
1734
. arg ( "-arch" )
1736
1735
. arg ( & arch)
1737
1736
. arg ( "-out" )
@@ -1745,6 +1744,9 @@ impl Step for Extended {
1745
1744
if built_tools. contains ( "rust-analyzer" ) {
1746
1745
cmd. arg ( "-dRustAnalyzerDir=rust-analyzer" ) ;
1747
1746
}
1747
+ if built_tools. contains ( "miri" ) {
1748
+ cmd. arg ( "-dMiriDir=miri" ) ;
1749
+ }
1748
1750
if target. ends_with ( "windows-gnu" ) {
1749
1751
cmd. arg ( "-dGccDir=rust-mingw" ) ;
1750
1752
}
@@ -1758,7 +1760,9 @@ impl Step for Extended {
1758
1760
candle ( "CargoGroup.wxs" . as_ref ( ) ) ;
1759
1761
candle ( "StdGroup.wxs" . as_ref ( ) ) ;
1760
1762
candle ( "ClippyGroup.wxs" . as_ref ( ) ) ;
1761
- candle ( "MiriGroup.wxs" . as_ref ( ) ) ;
1763
+ if built_tools. contains ( "miri" ) {
1764
+ candle ( "MiriGroup.wxs" . as_ref ( ) ) ;
1765
+ }
1762
1766
if built_tools. contains ( "rust-demangler" ) {
1763
1767
candle ( "RustDemanglerGroup.wxs" . as_ref ( ) ) ;
1764
1768
}
@@ -1794,9 +1798,11 @@ impl Step for Extended {
1794
1798
. arg ( "StdGroup.wixobj" )
1795
1799
. arg ( "AnalysisGroup.wixobj" )
1796
1800
. arg ( "ClippyGroup.wixobj" )
1797
- . arg ( "MiriGroup.wixobj" )
1798
1801
. current_dir ( & exe) ;
1799
1802
1803
+ if built_tools. contains ( "miri" ) {
1804
+ cmd. arg ( "MiriGroup.wixobj" ) ;
1805
+ }
1800
1806
if built_tools. contains ( "rust-analyzer" ) {
1801
1807
cmd. arg ( "RustAnalyzerGroup.wixobj" ) ;
1802
1808
}
0 commit comments