Skip to content

Commit 5b5022c

Browse files
author
Mohammad Azim Khan
committed
Only pass coverage filter for GCC_ARM compiler selection
1 parent 8a7f83e commit 5b5022c

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

tools/build_api.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,10 +312,16 @@ def prepare_toolchain(src_paths, target, toolchain_name,
312312

313313
# Toolchain instance
314314
try:
315-
toolchain = TOOLCHAIN_CLASSES[toolchain_name](
316-
target, notify, macros, silent,
317-
extra_verbose=extra_verbose, build_profile=build_profile,
318-
coverage_filter=coverage_filter)
315+
if toolchain_name == "GCC_ARM":
316+
toolchain = TOOLCHAIN_CLASSES[toolchain_name](
317+
target, options, notify, macros, silent,
318+
extra_verbose=extra_verbose, build_profile=build_profile,
319+
coverage_filter=coverage_filter)
320+
else:
321+
toolchain = TOOLCHAIN_CLASSES[toolchain_name](
322+
target, options, notify, macros, silent,
323+
extra_verbose=extra_verbose, build_profile=build_profile,
324+
coverage_filter=coverage_filter)
319325
except KeyError:
320326
raise KeyError("Toolchain %s not supported" % toolchain_name)
321327

0 commit comments

Comments
 (0)