about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYuki Okushi <jtitor@2k36.org>2021-07-24 04:31:10 +0900
committerGitHub <noreply@github.com>2021-07-24 04:31:10 +0900
commit82a14e57e7754310dd78c08386d801a33555d2f6 (patch)
tree9cc9d1fa411eb4f6c2a9b15ab6721d56c3a1ee4c
parent8b89c3240b9602c87120a67cef54cb9131a36887 (diff)
parentf63c80556acdc819f4f2953fabb4760b2da02292 (diff)
downloadrust-82a14e57e7754310dd78c08386d801a33555d2f6.tar.gz
rust-82a14e57e7754310dd78c08386d801a33555d2f6.zip
Rollup merge of #87283 - pietroalbini:configure-codegen-backends, r=Mark-Simulacrum
Add `--codegen-backends=foo,bar` configure flag

Unfortunately this requires a proper `./configure` flag, as the codegen backends config entry is a list, not a string (breaking `--set`).
-rwxr-xr-xsrc/bootstrap/configure.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/bootstrap/configure.py b/src/bootstrap/configure.py
index 999882a1c04..8d9f169e6c5 100755
--- a/src/bootstrap/configure.py
+++ b/src/bootstrap/configure.py
@@ -160,6 +160,7 @@ o("full-bootstrap", "build.full-bootstrap", "build three compilers instead of tw
 o("extended", "build.extended", "build an extended rust tool set")
 
 v("tools", None, "List of extended tools will be installed")
+v("codegen-backends", None, "List of codegen backends to build")
 v("build", "build.build", "GNUs ./configure syntax LLVM build triple")
 v("host", None, "GNUs ./configure syntax LLVM host triples")
 v("target", None, "GNUs ./configure syntax LLVM target triples")
@@ -339,6 +340,8 @@ for key in known_args:
         set('target.{}.llvm-filecheck'.format(build()), value)
     elif option.name == 'tools':
         set('build.tools', value.split(','))
+    elif option.name == 'codegen-backends':
+        set('rust.codegen-backends', value.split(','))
     elif option.name == 'host':
         set('build.host', value.split(','))
     elif option.name == 'target':