mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #1995 from geky/fix-debug-info
[tools] Reorder option handling in toolchainspull/1988/merge
commit
d3a6ac3f5f
|
@ -233,12 +233,6 @@ class mbedToolchain:
|
||||||
# compile/assemble/link/binary hooks
|
# compile/assemble/link/binary hooks
|
||||||
self.hook = hooks.Hook(target, self)
|
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
|
# Toolchain flags
|
||||||
self.flags = deepcopy(self.DEFAULT_FLAGS)
|
self.flags = deepcopy(self.DEFAULT_FLAGS)
|
||||||
|
|
||||||
|
@ -288,6 +282,12 @@ class mbedToolchain:
|
||||||
|
|
||||||
# Print output buffer
|
# Print output buffer
|
||||||
self.output = ""
|
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
|
# uVisor spepcific rules
|
||||||
if 'UVISOR' in self.target.features and 'UVISOR_SUPPORTED' in self.target.extra_labels:
|
if 'UVISOR' in self.target.features and 'UVISOR_SUPPORTED' in self.target.extra_labels:
|
||||||
|
|
Loading…
Reference in New Issue