@@ -1654,10 +1654,10 @@ impl<'a> Builder<'a> {
1654
1654
}
1655
1655
1656
1656
if let Some ( host_linker) = self . linker ( compiler. host ) {
1657
- hostflags. flag ( format ! ( "-Clinker={}" , host_linker. display( ) ) ) ;
1657
+ hostflags. arg ( format ! ( "-Clinker={}" , host_linker. display( ) ) ) ;
1658
1658
}
1659
1659
if self . is_fuse_ld_lld ( compiler. host ) {
1660
- hostflags. flag ( "-Clink-args=-fuse-ld=lld" ) ;
1660
+ hostflags. arg ( "-Clink-args=-fuse-ld=lld" ) ;
1661
1661
}
1662
1662
1663
1663
if let Some ( target_linker) = self . linker ( target) {
@@ -1742,7 +1742,7 @@ impl<'a> Builder<'a> {
1742
1742
1743
1743
if let Some ( x) = self . crt_static ( compiler. host ) {
1744
1744
let sign = if x { "+" } else { "-" } ;
1745
- hostflags. flag ( format ! ( "-Ctarget-feature={sign}crt-static" ) ) ;
1745
+ hostflags. arg ( format ! ( "-Ctarget-feature={sign}crt-static" ) ) ;
1746
1746
}
1747
1747
1748
1748
if let Some ( map_to) = self . build . debuginfo_map_to ( GitRepo :: Rustc ) {
@@ -2244,7 +2244,7 @@ impl HostFlags {
2244
2244
const SEPARATOR : & ' static str = " " ;
2245
2245
2246
2246
/// Adds a host rustc flag.
2247
- fn flag < S : Into < String > > ( & mut self , flag : S ) {
2247
+ fn arg < S : Into < String > > ( & mut self , flag : S ) {
2248
2248
let value = flag. into ( ) . trim ( ) . to_string ( ) ;
2249
2249
assert ! ( !value. contains( Self :: SEPARATOR ) ) ;
2250
2250
self . rustc . push ( value) ;
0 commit comments