mirror of https://github.com/ARMmbed/mbed-os.git
tools: Support default_lib and c_lib
For backwards compatibility reasons, since the latest Mbed OS tools must be able to build any previous online-compiler-supported version of Mbed OS, allow targets to use `default_lib` or `c_lib`. This should enable the tools to work with Mbed OS 5 style targets.json.pull/13007/head
parent
8be07a4906
commit
5e65cf7f4d
|
@ -1098,9 +1098,10 @@ class mbedToolchain(with_metaclass(ABCMeta, object)):
|
|||
This is done to be case insensitive when validating.
|
||||
"""
|
||||
if hasattr(target, "default_lib"):
|
||||
raise NotSupportedException(
|
||||
"target.default_lib is no longer supported, please use target.c_lib for C library selection."
|
||||
)
|
||||
# Use default_lib as the c_lib attribute. This allows backwards
|
||||
# compatibility with older target definitions, allowing either
|
||||
# default_lib or c_lib to specify the C library to use.
|
||||
target.c_lib = target.default_lib.lower()
|
||||
if hasattr(target, "c_lib"):
|
||||
target.c_lib = target.c_lib.lower()
|
||||
if (
|
||||
|
|
Loading…
Reference in New Issue