Skip to content

Commit 82a14e5

Browse files
authored
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`).
2 parents 8b89c32 + f63c805 commit 82a14e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/bootstrap/configure.py

+3
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ def v(*args):
160160
o("extended", "build.extended", "build an extended rust tool set")
161161

162162
v("tools", None, "List of extended tools will be installed")
163+
v("codegen-backends", None, "List of codegen backends to build")
163164
v("build", "build.build", "GNUs ./configure syntax LLVM build triple")
164165
v("host", None, "GNUs ./configure syntax LLVM host triples")
165166
v("target", None, "GNUs ./configure syntax LLVM target triples")
@@ -339,6 +340,8 @@ def set(key, value):
339340
set('target.{}.llvm-filecheck'.format(build()), value)
340341
elif option.name == 'tools':
341342
set('build.tools', value.split(','))
343+
elif option.name == 'codegen-backends':
344+
set('rust.codegen-backends', value.split(','))
342345
elif option.name == 'host':
343346
set('build.host', value.split(','))
344347
elif option.name == 'target':

0 commit comments

Comments
 (0)