Skip to content

Commit 937bfa9

Browse files
committed
Fixed mbed target -S and mbed toolchain -S commands
1 parent 001c68b commit 937bfa9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mbed/mbed.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2218,7 +2218,7 @@ def compile_(toolchain=None, target=None, profile=False, compile_library=False,
22182218

22192219
if supported:
22202220
popen([python_cmd, '-u', os.path.join(tools_dir, 'make.py')]
2221-
+ (['-S', supported] if supported else []) + (['-v'] if very_verbose else [])
2221+
+ (['-S', supported]) + (['-v'] if very_verbose else [])
22222222
+ (['--app-config', app_config] if app_config else [])
22232223
+ args,
22242224
env=env)
@@ -2574,7 +2574,7 @@ def config_(var=None, value=None, global_cfg=False, unset=False, list_config=Fal
25742574
"This is an alias to 'mbed config [--global] target [name]'\n"))
25752575
def target_(name=None, global_cfg=False, supported=False):
25762576
if supported:
2577-
return compile_(supported=supported)
2577+
return compile_(supported='matrix')
25782578
return config_('target', name, global_cfg=global_cfg)
25792579

25802580
@subcommand('toolchain',
@@ -2587,7 +2587,7 @@ def target_(name=None, global_cfg=False, supported=False):
25872587
"This is an alias to 'mbed config [--global] toolchain [name]'\n"))
25882588
def toolchain_(name=None, global_cfg=False, supported=False):
25892589
if supported:
2590-
return compile_(supported=supported)
2590+
return compile_(supported='matrix')
25912591
return config_('toolchain', name, global_cfg=global_cfg)
25922592

25932593
@subcommand('help',

0 commit comments

Comments
 (0)