@@ -1509,7 +1509,7 @@ impl Step for Extended {
1509
1509
tarballs. push ( builder. ensure ( Rustc { compiler : builder. compiler ( stage, target) } ) ) ;
1510
1510
tarballs. push ( builder. ensure ( Std { compiler, target } ) . expect ( "missing std" ) ) ;
1511
1511
1512
- if target. ends_with ( "windows-gnu" ) {
1512
+ if target. is_windows_gnu ( ) {
1513
1513
tarballs. push ( builder. ensure ( Mingw { host : target } ) . expect ( "missing mingw" ) ) ;
1514
1514
}
1515
1515
@@ -1683,7 +1683,7 @@ impl Step for Extended {
1683
1683
prepare ( tool) ;
1684
1684
}
1685
1685
}
1686
- if target. ends_with ( "windows-gnu" ) {
1686
+ if target. is_windows_gnu ( ) {
1687
1687
prepare ( "rust-mingw" ) ;
1688
1688
}
1689
1689
@@ -1830,7 +1830,7 @@ impl Step for Extended {
1830
1830
. arg ( "-t" )
1831
1831
. arg ( etc. join ( "msi/remove-duplicates.xsl" ) )
1832
1832
. run ( builder) ;
1833
- if target. ends_with ( "windows-gnu" ) {
1833
+ if target. is_windows_gnu ( ) {
1834
1834
command ( & heat)
1835
1835
. current_dir ( & exe)
1836
1836
. arg ( "dir" )
@@ -1876,7 +1876,7 @@ impl Step for Extended {
1876
1876
if built_tools. contains ( "miri" ) {
1877
1877
cmd. arg ( "-dMiriDir=miri" ) ;
1878
1878
}
1879
- if target. ends_with ( "windows-gnu" ) {
1879
+ if target. is_windows_gnu ( ) {
1880
1880
cmd. arg ( "-dGccDir=rust-mingw" ) ;
1881
1881
}
1882
1882
cmd. run ( builder) ;
@@ -1901,7 +1901,7 @@ impl Step for Extended {
1901
1901
}
1902
1902
candle ( "AnalysisGroup.wxs" . as_ref ( ) ) ;
1903
1903
1904
- if target. ends_with ( "windows-gnu" ) {
1904
+ if target. is_windows_gnu ( ) {
1905
1905
candle ( "GccGroup.wxs" . as_ref ( ) ) ;
1906
1906
}
1907
1907
@@ -1941,7 +1941,7 @@ impl Step for Extended {
1941
1941
cmd. arg ( "DocsGroup.wixobj" ) ;
1942
1942
}
1943
1943
1944
- if target. ends_with ( "windows-gnu" ) {
1944
+ if target. is_windows_gnu ( ) {
1945
1945
cmd. arg ( "GccGroup.wixobj" ) ;
1946
1946
}
1947
1947
// ICE57 wrongly complains about the shortcuts
@@ -1973,7 +1973,7 @@ fn add_env(builder: &Builder<'_>, cmd: &mut BootstrapCommand, target: TargetSele
1973
1973
1974
1974
if target. contains ( "windows-gnullvm" ) {
1975
1975
cmd. env ( "CFG_MINGW" , "1" ) . env ( "CFG_ABI" , "LLVM" ) ;
1976
- } else if target. contains ( "windows-gnu" ) {
1976
+ } else if target. is_windows_gnu ( ) {
1977
1977
cmd. env ( "CFG_MINGW" , "1" ) . env ( "CFG_ABI" , "GNU" ) ;
1978
1978
} else {
1979
1979
cmd. env ( "CFG_MINGW" , "0" ) . env ( "CFG_ABI" , "MSVC" ) ;
0 commit comments