Skip to content

Commit 98d4e1f

Browse files
committed
Use notification API in build.py
1 parent 5c16cd3 commit 98d4e1f

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

tools/build.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -145,16 +145,6 @@
145145
if options.source_dir and not options.build_dir:
146146
args_error(parser, "argument --build is required by argument --source")
147147

148-
if options.color:
149-
# This import happens late to prevent initializing colorization when we don't need it
150-
import colorize
151-
if options.verbose:
152-
notify = mbedToolchain.print_notify_verbose
153-
else:
154-
notify = mbedToolchain.print_notify
155-
notify = colorize.print_in_color_notifier(CLI_COLOR_MAP, notify)
156-
else:
157-
notify = None
158148

159149
# Get libraries list
160150
libraries = []
@@ -190,6 +180,7 @@
190180
skipped.append(tt_id)
191181
else:
192182
try:
183+
notify = TerminalNotifer(options.verbose, options.silent)
193184
mcu = TARGET_MAP[target]
194185
profile = extract_profile(parser, options, toolchain)
195186
if options.source_dir:

0 commit comments

Comments
 (0)