about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPietro Albini <pietro.albini@ferrous-systems.com>2021-07-19 16:48:12 +0200
committerPietro Albini <pietro.albini@ferrous-systems.com>2021-07-19 16:48:12 +0200
commitf63c80556acdc819f4f2953fabb4760b2da02292 (patch)
tree72bfd48f2077aead7e85559f045746ca7b7c7a30
parent8df945c4717ffaf923b57bf30c473df6fc98bc85 (diff)
downloadrust-f63c80556acdc819f4f2953fabb4760b2da02292.tar.gz
rust-f63c80556acdc819f4f2953fabb4760b2da02292.zip
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':