@@ -1470,7 +1470,7 @@ impl Step for Extended {
1470
1470
1471
1471
let xform = |p : & Path | {
1472
1472
let mut contents = t ! ( fs:: read_to_string( p) ) ;
1473
- for tool in & [ "rust-demangler" ] {
1473
+ for tool in & [ "rust-demangler" , "miri" ] {
1474
1474
if !built_tools. contains ( tool) {
1475
1475
contents = filter ( & contents, tool) ;
1476
1476
}
@@ -1510,9 +1510,8 @@ impl Step for Extended {
1510
1510
prepare ( "rust-std" ) ;
1511
1511
prepare ( "rust-analysis" ) ;
1512
1512
prepare ( "clippy" ) ;
1513
- prepare ( "miri" ) ;
1514
1513
prepare ( "rust-analyzer" ) ;
1515
- for tool in & [ "rust-docs" , "rust-demangler" ] {
1514
+ for tool in & [ "rust-docs" , "rust-demangler" , "miri" ] {
1516
1515
if built_tools. contains ( tool) {
1517
1516
prepare ( tool) ;
1518
1517
}
@@ -1571,9 +1570,8 @@ impl Step for Extended {
1571
1570
prepare ( "rust-docs" ) ;
1572
1571
prepare ( "rust-std" ) ;
1573
1572
prepare ( "clippy" ) ;
1574
- prepare ( "miri" ) ;
1575
1573
prepare ( "rust-analyzer" ) ;
1576
- for tool in & [ "rust-demangler" ] {
1574
+ for tool in & [ "rust-demangler" , "miri" ] {
1577
1575
if built_tools. contains ( tool) {
1578
1576
prepare ( tool) ;
1579
1577
}
@@ -1710,23 +1708,25 @@ impl Step for Extended {
1710
1708
. arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) ,
1711
1709
) ;
1712
1710
}
1713
- builder. run (
1714
- Command :: new ( & heat)
1715
- . current_dir ( & exe)
1716
- . arg ( "dir" )
1717
- . arg ( "miri" )
1718
- . args ( & heat_flags)
1719
- . arg ( "-cg" )
1720
- . arg ( "MiriGroup" )
1721
- . arg ( "-dr" )
1722
- . arg ( "Miri" )
1723
- . arg ( "-var" )
1724
- . arg ( "var.MiriDir" )
1725
- . arg ( "-out" )
1726
- . arg ( exe. join ( "MiriGroup.wxs" ) )
1727
- . arg ( "-t" )
1728
- . arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) ,
1729
- ) ;
1711
+ if built_tools. contains ( "miri" ) {
1712
+ builder. run (
1713
+ Command :: new ( & heat)
1714
+ . current_dir ( & exe)
1715
+ . arg ( "dir" )
1716
+ . arg ( "miri" )
1717
+ . args ( & heat_flags)
1718
+ . arg ( "-cg" )
1719
+ . arg ( "MiriGroup" )
1720
+ . arg ( "-dr" )
1721
+ . arg ( "Miri" )
1722
+ . arg ( "-var" )
1723
+ . arg ( "var.MiriDir" )
1724
+ . arg ( "-out" )
1725
+ . arg ( exe. join ( "MiriGroup.wxs" ) )
1726
+ . arg ( "-t" )
1727
+ . arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) ,
1728
+ ) ;
1729
+ }
1730
1730
builder. run (
1731
1731
Command :: new ( & heat)
1732
1732
. current_dir ( & exe)
@@ -1774,7 +1774,6 @@ impl Step for Extended {
1774
1774
. arg ( "-dStdDir=rust-std" )
1775
1775
. arg ( "-dAnalysisDir=rust-analysis" )
1776
1776
. arg ( "-dClippyDir=clippy" )
1777
- . arg ( "-dMiriDir=miri" )
1778
1777
. arg ( "-arch" )
1779
1778
. arg ( & arch)
1780
1779
. arg ( "-out" )
@@ -1788,6 +1787,9 @@ impl Step for Extended {
1788
1787
if built_tools. contains ( "rust-analyzer" ) {
1789
1788
cmd. arg ( "-dRustAnalyzerDir=rust-analyzer" ) ;
1790
1789
}
1790
+ if built_tools. contains ( "miri" ) {
1791
+ cmd. arg ( "-dMiriDir=miri" ) ;
1792
+ }
1791
1793
if target. ends_with ( "windows-gnu" ) {
1792
1794
cmd. arg ( "-dGccDir=rust-mingw" ) ;
1793
1795
}
@@ -1801,7 +1803,9 @@ impl Step for Extended {
1801
1803
candle ( "CargoGroup.wxs" . as_ref ( ) ) ;
1802
1804
candle ( "StdGroup.wxs" . as_ref ( ) ) ;
1803
1805
candle ( "ClippyGroup.wxs" . as_ref ( ) ) ;
1804
- candle ( "MiriGroup.wxs" . as_ref ( ) ) ;
1806
+ if built_tools. contains ( "miri" ) {
1807
+ candle ( "MiriGroup.wxs" . as_ref ( ) ) ;
1808
+ }
1805
1809
if built_tools. contains ( "rust-demangler" ) {
1806
1810
candle ( "RustDemanglerGroup.wxs" . as_ref ( ) ) ;
1807
1811
}
@@ -1837,9 +1841,11 @@ impl Step for Extended {
1837
1841
. arg ( "StdGroup.wixobj" )
1838
1842
. arg ( "AnalysisGroup.wixobj" )
1839
1843
. arg ( "ClippyGroup.wixobj" )
1840
- . arg ( "MiriGroup.wixobj" )
1841
1844
. current_dir ( & exe) ;
1842
1845
1846
+ if built_tools. contains ( "miri" ) {
1847
+ cmd. arg ( "MiriGroup.wixobj" ) ;
1848
+ }
1843
1849
if built_tools. contains ( "rust-analyzer" ) {
1844
1850
cmd. arg ( "RustAnalyzerGroup.wixobj" ) ;
1845
1851
}
0 commit comments