@@ -1585,11 +1585,10 @@ impl Step for Extended {
1585
1585
prepare ( "rustc" ) ;
1586
1586
prepare ( "cargo" ) ;
1587
1587
prepare ( "rust-analysis" ) ;
1588
- prepare ( "rust-docs" ) ;
1589
1588
prepare ( "rust-std" ) ;
1590
1589
prepare ( "clippy" ) ;
1591
1590
prepare ( "rust-analyzer" ) ;
1592
- for tool in & [ "rust-demangler" , "miri" ] {
1591
+ for tool in & [ "rust-docs" , "rust- demangler", "miri" ] {
1593
1592
if built_tools. contains ( tool) {
1594
1593
prepare ( tool) ;
1595
1594
}
@@ -1624,23 +1623,25 @@ impl Step for Extended {
1624
1623
. arg ( "-out" )
1625
1624
. arg ( exe. join ( "RustcGroup.wxs" ) ) ,
1626
1625
) ;
1627
- builder. run (
1628
- Command :: new ( & heat)
1629
- . current_dir ( & exe)
1630
- . arg ( "dir" )
1631
- . arg ( "rust-docs" )
1632
- . args ( & heat_flags)
1633
- . arg ( "-cg" )
1634
- . arg ( "DocsGroup" )
1635
- . arg ( "-dr" )
1636
- . arg ( "Docs" )
1637
- . arg ( "-var" )
1638
- . arg ( "var.DocsDir" )
1639
- . arg ( "-out" )
1640
- . arg ( exe. join ( "DocsGroup.wxs" ) )
1641
- . arg ( "-t" )
1642
- . arg ( etc. join ( "msi/squash-components.xsl" ) ) ,
1643
- ) ;
1626
+ if built_tools. contains ( "rust-docs" ) {
1627
+ builder. run (
1628
+ Command :: new ( & heat)
1629
+ . current_dir ( & exe)
1630
+ . arg ( "dir" )
1631
+ . arg ( "rust-docs" )
1632
+ . args ( & heat_flags)
1633
+ . arg ( "-cg" )
1634
+ . arg ( "DocsGroup" )
1635
+ . arg ( "-dr" )
1636
+ . arg ( "Docs" )
1637
+ . arg ( "-var" )
1638
+ . arg ( "var.DocsDir" )
1639
+ . arg ( "-out" )
1640
+ . arg ( exe. join ( "DocsGroup.wxs" ) )
1641
+ . arg ( "-t" )
1642
+ . arg ( etc. join ( "msi/squash-components.xsl" ) ) ,
1643
+ ) ;
1644
+ }
1644
1645
builder. run (
1645
1646
Command :: new ( & heat)
1646
1647
. current_dir ( & exe)
@@ -1787,7 +1788,6 @@ impl Step for Extended {
1787
1788
cmd. current_dir ( & exe)
1788
1789
. arg ( "-nologo" )
1789
1790
. arg ( "-dRustcDir=rustc" )
1790
- . arg ( "-dDocsDir=rust-docs" )
1791
1791
. arg ( "-dCargoDir=cargo" )
1792
1792
. arg ( "-dStdDir=rust-std" )
1793
1793
. arg ( "-dAnalysisDir=rust-analysis" )
@@ -1799,6 +1799,9 @@ impl Step for Extended {
1799
1799
. arg ( & input) ;
1800
1800
add_env ( builder, & mut cmd, target) ;
1801
1801
1802
+ if built_tools. contains ( "rust-docs" ) {
1803
+ cmd. arg ( "-dDocsDir=rust-docs" ) ;
1804
+ }
1802
1805
if built_tools. contains ( "rust-demangler" ) {
1803
1806
cmd. arg ( "-dRustDemanglerDir=rust-demangler" ) ;
1804
1807
}
@@ -1817,7 +1820,9 @@ impl Step for Extended {
1817
1820
candle ( & etc. join ( "msi/ui.wxs" ) ) ;
1818
1821
candle ( & etc. join ( "msi/rustwelcomedlg.wxs" ) ) ;
1819
1822
candle ( "RustcGroup.wxs" . as_ref ( ) ) ;
1820
- candle ( "DocsGroup.wxs" . as_ref ( ) ) ;
1823
+ if built_tools. contains ( "rust-docs" ) {
1824
+ candle ( "DocsGroup.wxs" . as_ref ( ) ) ;
1825
+ }
1821
1826
candle ( "CargoGroup.wxs" . as_ref ( ) ) ;
1822
1827
candle ( "StdGroup.wxs" . as_ref ( ) ) ;
1823
1828
candle ( "ClippyGroup.wxs" . as_ref ( ) ) ;
@@ -1854,7 +1859,6 @@ impl Step for Extended {
1854
1859
. arg ( "ui.wixobj" )
1855
1860
. arg ( "rustwelcomedlg.wixobj" )
1856
1861
. arg ( "RustcGroup.wixobj" )
1857
- . arg ( "DocsGroup.wixobj" )
1858
1862
. arg ( "CargoGroup.wixobj" )
1859
1863
. arg ( "StdGroup.wixobj" )
1860
1864
. arg ( "AnalysisGroup.wixobj" )
@@ -1870,6 +1874,9 @@ impl Step for Extended {
1870
1874
if built_tools. contains ( "rust-demangler" ) {
1871
1875
cmd. arg ( "RustDemanglerGroup.wixobj" ) ;
1872
1876
}
1877
+ if built_tools. contains ( "rust-docs" ) {
1878
+ cmd. arg ( "DocsGroup.wixobj" ) ;
1879
+ }
1873
1880
1874
1881
if target. ends_with ( "windows-gnu" ) {
1875
1882
cmd. arg ( "GccGroup.wixobj" ) ;
0 commit comments