mirror of https://github.com/ARMmbed/mbed-os.git
[tools] Reordered option handling in toolchains
Options were parsed and logged before per-toolchain logging was setup. Fixes #1990pull/1995/head
parent
f864b8439f
commit
5a4c5df4dc
|
@ -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)
|
||||
|
||||
|
@ -289,6 +283,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:
|
||||
self.target.core = re.sub(r"F$", '', self.target.core)
|
||||
|
|
Loading…
Reference in New Issue