@@ -1601,9 +1601,7 @@ impl Step for Extended {
1601
1601
prepare ( "cargo" ) ;
1602
1602
prepare ( "rust-analysis" ) ;
1603
1603
prepare ( "rust-std" ) ;
1604
- prepare ( "clippy" ) ;
1605
- prepare ( "rust-analyzer" ) ;
1606
- for tool in & [ "rust-docs" , "rust-demangler" , "miri" ] {
1604
+ for tool in & [ "clippy" , "rust-analyzer" , "rust-docs" , "rust-demangler" , "miri" ] {
1607
1605
if built_tools. contains ( tool) {
1608
1606
prepare ( tool) ;
1609
1607
}
@@ -1689,40 +1687,44 @@ impl Step for Extended {
1689
1687
. arg ( "-out" )
1690
1688
. arg ( exe. join ( "StdGroup.wxs" ) ) ,
1691
1689
) ;
1692
- builder. run (
1693
- Command :: new ( & heat)
1694
- . current_dir ( & exe)
1695
- . arg ( "dir" )
1696
- . arg ( "rust-analyzer" )
1697
- . args ( & heat_flags)
1698
- . arg ( "-cg" )
1699
- . arg ( "RustAnalyzerGroup" )
1700
- . arg ( "-dr" )
1701
- . arg ( "RustAnalyzer" )
1702
- . arg ( "-var" )
1703
- . arg ( "var.RustAnalyzerDir" )
1704
- . arg ( "-out" )
1705
- . arg ( exe. join ( "RustAnalyzerGroup.wxs" ) )
1706
- . arg ( "-t" )
1707
- . arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) ,
1708
- ) ;
1709
- builder. run (
1710
- Command :: new ( & heat)
1711
- . current_dir ( & exe)
1712
- . arg ( "dir" )
1713
- . arg ( "clippy" )
1714
- . args ( & heat_flags)
1715
- . arg ( "-cg" )
1716
- . arg ( "ClippyGroup" )
1717
- . arg ( "-dr" )
1718
- . arg ( "Clippy" )
1719
- . arg ( "-var" )
1720
- . arg ( "var.ClippyDir" )
1721
- . arg ( "-out" )
1722
- . arg ( exe. join ( "ClippyGroup.wxs" ) )
1723
- . arg ( "-t" )
1724
- . arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) ,
1725
- ) ;
1690
+ if built_tools. contains ( "rust-analyzer" ) {
1691
+ builder. run (
1692
+ Command :: new ( & heat)
1693
+ . current_dir ( & exe)
1694
+ . arg ( "dir" )
1695
+ . arg ( "rust-analyzer" )
1696
+ . args ( & heat_flags)
1697
+ . arg ( "-cg" )
1698
+ . arg ( "RustAnalyzerGroup" )
1699
+ . arg ( "-dr" )
1700
+ . arg ( "RustAnalyzer" )
1701
+ . arg ( "-var" )
1702
+ . arg ( "var.RustAnalyzerDir" )
1703
+ . arg ( "-out" )
1704
+ . arg ( exe. join ( "RustAnalyzerGroup.wxs" ) )
1705
+ . arg ( "-t" )
1706
+ . arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) ,
1707
+ ) ;
1708
+ }
1709
+ if built_tools. contains ( "clippy" ) {
1710
+ builder. run (
1711
+ Command :: new ( & heat)
1712
+ . current_dir ( & exe)
1713
+ . arg ( "dir" )
1714
+ . arg ( "clippy" )
1715
+ . args ( & heat_flags)
1716
+ . arg ( "-cg" )
1717
+ . arg ( "ClippyGroup" )
1718
+ . arg ( "-dr" )
1719
+ . arg ( "Clippy" )
1720
+ . arg ( "-var" )
1721
+ . arg ( "var.ClippyDir" )
1722
+ . arg ( "-out" )
1723
+ . arg ( exe. join ( "ClippyGroup.wxs" ) )
1724
+ . arg ( "-t" )
1725
+ . arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) ,
1726
+ ) ;
1727
+ }
1726
1728
if built_tools. contains ( "rust-demangler" ) {
1727
1729
builder. run (
1728
1730
Command :: new ( & heat)
@@ -1806,14 +1808,16 @@ impl Step for Extended {
1806
1808
. arg ( "-dCargoDir=cargo" )
1807
1809
. arg ( "-dStdDir=rust-std" )
1808
1810
. arg ( "-dAnalysisDir=rust-analysis" )
1809
- . arg ( "-dClippyDir=clippy" )
1810
1811
. arg ( "-arch" )
1811
1812
. arg ( & arch)
1812
1813
. arg ( "-out" )
1813
1814
. arg ( & output)
1814
1815
. arg ( & input) ;
1815
1816
add_env ( builder, & mut cmd, target) ;
1816
1817
1818
+ if built_tools. contains ( "clippy" ) {
1819
+ cmd. arg ( "-dClippyDir=clippy" ) ;
1820
+ }
1817
1821
if built_tools. contains ( "rust-docs" ) {
1818
1822
cmd. arg ( "-dDocsDir=rust-docs" ) ;
1819
1823
}
@@ -1840,7 +1844,9 @@ impl Step for Extended {
1840
1844
}
1841
1845
candle ( "CargoGroup.wxs" . as_ref ( ) ) ;
1842
1846
candle ( "StdGroup.wxs" . as_ref ( ) ) ;
1843
- candle ( "ClippyGroup.wxs" . as_ref ( ) ) ;
1847
+ if built_tools. contains ( "clippy" ) {
1848
+ candle ( "ClippyGroup.wxs" . as_ref ( ) ) ;
1849
+ }
1844
1850
if built_tools. contains ( "miri" ) {
1845
1851
candle ( "MiriGroup.wxs" . as_ref ( ) ) ;
1846
1852
}
@@ -1877,9 +1883,11 @@ impl Step for Extended {
1877
1883
. arg ( "CargoGroup.wixobj" )
1878
1884
. arg ( "StdGroup.wixobj" )
1879
1885
. arg ( "AnalysisGroup.wixobj" )
1880
- . arg ( "ClippyGroup.wixobj" )
1881
1886
. current_dir ( & exe) ;
1882
1887
1888
+ if built_tools. contains ( "clippy" ) {
1889
+ cmd. arg ( "ClippyGroup.wixobj" ) ;
1890
+ }
1883
1891
if built_tools. contains ( "miri" ) {
1884
1892
cmd. arg ( "MiriGroup.wixobj" ) ;
1885
1893
}
0 commit comments