@@ -1601,9 +1601,8 @@ impl Step for Extended {
1601
1601
prepare ( "cargo" ) ;
1602
1602
prepare ( "rust-analysis" ) ;
1603
1603
prepare ( "rust-std" ) ;
1604
- prepare ( "clippy" ) ;
1605
1604
prepare ( "rust-analyzer" ) ;
1606
- for tool in & [ "rust-docs" , "rust-demangler" , "miri" ] {
1605
+ for tool in & [ "clippy" , " rust-docs", "rust-demangler" , "miri" ] {
1607
1606
if built_tools. contains ( tool) {
1608
1607
prepare ( tool) ;
1609
1608
}
@@ -1706,23 +1705,25 @@ impl Step for Extended {
1706
1705
. arg ( "-t" )
1707
1706
. arg ( etc. join ( "msi/remove-duplicates.xsl" ) ) ,
1708
1707
) ;
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
- ) ;
1708
+ if built_tools. contains ( "clippy" ) {
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
+ ) ;
1726
+ }
1726
1727
if built_tools. contains ( "rust-demangler" ) {
1727
1728
builder. run (
1728
1729
Command :: new ( & heat)
@@ -1806,14 +1807,16 @@ impl Step for Extended {
1806
1807
. arg ( "-dCargoDir=cargo" )
1807
1808
. arg ( "-dStdDir=rust-std" )
1808
1809
. arg ( "-dAnalysisDir=rust-analysis" )
1809
- . arg ( "-dClippyDir=clippy" )
1810
1810
. arg ( "-arch" )
1811
1811
. arg ( & arch)
1812
1812
. arg ( "-out" )
1813
1813
. arg ( & output)
1814
1814
. arg ( & input) ;
1815
1815
add_env ( builder, & mut cmd, target) ;
1816
1816
1817
+ if built_tools. contains ( "clippy" ) {
1818
+ cmd. arg ( "-dClippyDir=clippy" ) ;
1819
+ }
1817
1820
if built_tools. contains ( "rust-docs" ) {
1818
1821
cmd. arg ( "-dDocsDir=rust-docs" ) ;
1819
1822
}
@@ -1840,7 +1843,9 @@ impl Step for Extended {
1840
1843
}
1841
1844
candle ( "CargoGroup.wxs" . as_ref ( ) ) ;
1842
1845
candle ( "StdGroup.wxs" . as_ref ( ) ) ;
1843
- candle ( "ClippyGroup.wxs" . as_ref ( ) ) ;
1846
+ if built_tools. contains ( "clippy" ) {
1847
+ candle ( "ClippyGroup.wxs" . as_ref ( ) ) ;
1848
+ }
1844
1849
if built_tools. contains ( "miri" ) {
1845
1850
candle ( "MiriGroup.wxs" . as_ref ( ) ) ;
1846
1851
}
@@ -1877,9 +1882,11 @@ impl Step for Extended {
1877
1882
. arg ( "CargoGroup.wixobj" )
1878
1883
. arg ( "StdGroup.wixobj" )
1879
1884
. arg ( "AnalysisGroup.wixobj" )
1880
- . arg ( "ClippyGroup.wixobj" )
1881
1885
. current_dir ( & exe) ;
1882
1886
1887
+ if built_tools. contains ( "clippy" ) {
1888
+ cmd. arg ( "ClippyGroup.wixobj" ) ;
1889
+ }
1883
1890
if built_tools. contains ( "miri" ) {
1884
1891
cmd. arg ( "MiriGroup.wixobj" ) ;
1885
1892
}
0 commit comments