about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorJakub Beránek <jakub.beranek@vsb.cz>2023-10-06 21:26:36 +0200
committerJakub Beránek <jakub.beranek@vsb.cz>2023-10-06 21:26:36 +0200
commit4ea6e7fc13867de1547e35a62524d623c5738320 (patch)
treeca8d0040844ea9292c4f86b3445e6c0fe2a7c153 /src
parenteddbd7c6a0f45578e89c8f509bfff0c048a580d0 (diff)
downloadrust-4ea6e7fc13867de1547e35a62524d623c5738320.tar.gz
rust-4ea6e7fc13867de1547e35a62524d623c5738320.zip
Rename `flag` to `arg`
Diffstat (limited to 'src')
-rw-r--r--src/bootstrap/builder.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bootstrap/builder.rs b/src/bootstrap/builder.rs
index a3e1a53b5de..c736d11bd88 100644
--- a/src/bootstrap/builder.rs
+++ b/src/bootstrap/builder.rs
@@ -1654,10 +1654,10 @@ impl<'a> Builder<'a> {
         }
 
         if let Some(host_linker) = self.linker(compiler.host) {
-            hostflags.flag(format!("-Clinker={}", host_linker.display()));
+            hostflags.arg(format!("-Clinker={}", host_linker.display()));
         }
         if self.is_fuse_ld_lld(compiler.host) {
-            hostflags.flag("-Clink-args=-fuse-ld=lld");
+            hostflags.arg("-Clink-args=-fuse-ld=lld");
         }
 
         if let Some(target_linker) = self.linker(target) {
@@ -1742,7 +1742,7 @@ impl<'a> Builder<'a> {
 
         if let Some(x) = self.crt_static(compiler.host) {
             let sign = if x { "+" } else { "-" };
-            hostflags.flag(format!("-Ctarget-feature={sign}crt-static"));
+            hostflags.arg(format!("-Ctarget-feature={sign}crt-static"));
         }
 
         if let Some(map_to) = self.build.debuginfo_map_to(GitRepo::Rustc) {
@@ -2244,7 +2244,7 @@ impl HostFlags {
     const SEPARATOR: &'static str = " ";
 
     /// Adds a host rustc flag.
-    fn flag<S: Into<String>>(&mut self, flag: S) {
+    fn arg<S: Into<String>>(&mut self, flag: S) {
         let value = flag.into().trim().to_string();
         assert!(!value.contains(Self::SEPARATOR));
         self.rustc.push(value);