[tools] Reordered option handling in toolchains

Options were parsed and logged before per-toolchain
logging was setup.

Fixes #1990
pull/1995/head
Christopher Haster 2016-06-22 09:23:33 -05:00
parent f864b8439f
commit 5a4c5df4dc
1 changed files with 6 additions and 6 deletions

View File

@ -233,12 +233,6 @@ class mbedToolchain:
# compile/assemble/link/binary hooks
self.hook = hooks.Hook(target, self)
# Build options passed by -o flag
self.options = options if options is not None else []
self.options.extend(BUILD_OPTIONS)
if self.options:
self.info("Build Options: %s" % (', '.join(self.options)))
# Toolchain flags
self.flags = deepcopy(self.DEFAULT_FLAGS)
@ -288,6 +282,12 @@ class mbedToolchain:
# Print output buffer
self.output = ""
# Build options passed by -o flag
self.options = options if options is not None else []
self.options.extend(BUILD_OPTIONS)
if self.options:
self.info("Build Options: %s" % (', '.join(self.options)))
# uVisor spepcific rules
if 'UVISOR' in self.target.features and 'UVISOR_SUPPORTED' in self.target.extra_labels: