Skip to content

Commit 4ea6e7f

Browse files
committed
Rename flag to arg
1 parent eddbd7c commit 4ea6e7f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/bootstrap/builder.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1654,10 +1654,10 @@ impl<'a> Builder<'a> {
16541654
}
16551655

16561656
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()));
16581658
}
16591659
if self.is_fuse_ld_lld(compiler.host) {
1660-
hostflags.flag("-Clink-args=-fuse-ld=lld");
1660+
hostflags.arg("-Clink-args=-fuse-ld=lld");
16611661
}
16621662

16631663
if let Some(target_linker) = self.linker(target) {
@@ -1742,7 +1742,7 @@ impl<'a> Builder<'a> {
17421742

17431743
if let Some(x) = self.crt_static(compiler.host) {
17441744
let sign = if x { "+" } else { "-" };
1745-
hostflags.flag(format!("-Ctarget-feature={sign}crt-static"));
1745+
hostflags.arg(format!("-Ctarget-feature={sign}crt-static"));
17461746
}
17471747

17481748
if let Some(map_to) = self.build.debuginfo_map_to(GitRepo::Rustc) {
@@ -2244,7 +2244,7 @@ impl HostFlags {
22442244
const SEPARATOR: &'static str = " ";
22452245

22462246
/// 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) {
22482248
let value = flag.into().trim().to_string();
22492249
assert!(!value.contains(Self::SEPARATOR));
22502250
self.rustc.push(value);

0 commit comments

Comments
 (0)