Skip to content

Commit 150e163

Browse files
committed
fill build.tools on ./configure --enable-extended
Signed-off-by: onur-ozkan <work@onurozkan.dev>
1 parent 41cb42a commit 150e163

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

src/bootstrap/configure.py

+17
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,23 @@ def parse_args(args):
282282

283283
set('build.configure-args', args, config)
284284
apply_args(known_args, option_checking, config)
285+
286+
# fill the build.tools with default values if build.extended is enabled
287+
if known_args.get('extended', False) and 'tools' not in known_args:
288+
tools = [
289+
"cargo",
290+
"clippy",
291+
"rustdoc",
292+
"rustfmt",
293+
"rust-analyzer",
294+
"analysis",
295+
"src",
296+
]
297+
# add rust-demangler if build.profiler is enabled
298+
if known_args.get('profiler', False):
299+
tools.append("rust-demangler")
300+
set('build.tools', tools, config)
301+
285302
return parse_example_config(known_args, config)
286303

287304

0 commit comments

Comments
 (0)