about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJack Huey <31162821+jackh726@users.noreply.github.com>2022-05-22 11:37:43 -0400
committerGitHub <noreply@github.com>2022-05-22 11:37:43 -0400
commitb392cdf7de4cd8413f24ce77bf04dd646a60d79d (patch)
treee5bb27cf96f011cdd4f12b3fbc5471bb1241875d
parentb4c17d43a684691569bc45e3820d7ffe646fa09d (diff)
parent1532fd8cd0db93f469e414f9da31ef083a44fcba (diff)
downloadrust-b392cdf7de4cd8413f24ce77bf04dd646a60d79d.tar.gz
rust-b392cdf7de4cd8413f24ce77bf04dd646a60d79d.zip
Rollup merge of #97280 - yue4u:quote-replace-target-in-bootstrap-configure, r=Mark-Simulacrum
Quote replace target in bootstrap configure

close #97263
-rwxr-xr-xsrc/bootstrap/configure.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bootstrap/configure.py b/src/bootstrap/configure.py
index 87a130a0982..2fc036082cb 100755
--- a/src/bootstrap/configure.py
+++ b/src/bootstrap/configure.py
@@ -407,7 +407,7 @@ if 'target' in config:
         configured_targets.append(target)
 for target in configured_targets:
     targets[target] = sections['target'][:]
-    targets[target][0] = targets[target][0].replace("x86_64-unknown-linux-gnu", target)
+    targets[target][0] = targets[target][0].replace("x86_64-unknown-linux-gnu", "'{}'".format(target))
 
 
 def is_number(value):