Skip to content

Commit b2395a7

Browse files
committed
Simplify get_config toolchain handling
1 parent 545553b commit b2395a7

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tools/get_config.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,15 @@
5353
args_error(parser, "argument -m/--mcu is required")
5454
target = extract_mcus(parser, options)[0]
5555

56-
# Toolchain
57-
toolchain = options.tool[0] if options.tool is not None else None
58-
5956
options.prefix = options.prefix or [""]
6057

6158
try:
6259
params, macros, features = get_config(
63-
options.source_dir, target, toolchain, app_config=options.app_config)
60+
options.source_dir,
61+
target,
62+
options.tool[0] if options.tool else None,
63+
app_config=options.app_config
64+
)
6465
if not params and not macros:
6566
print("No configuration data available.")
6667
sys.exit(0)

0 commit comments

Comments
 (0)