Fix build failure due to C lib selected

Allow target.c_lib to be set to small when Mbed 5 is supported.
pull/12748/head
Hugues Kamba 2020-04-02 13:57:53 +01:00
parent dba3962f16
commit 467305f374
1 changed files with 6 additions and 5 deletions

View File

@ -337,12 +337,13 @@ def is_official_target(target_name, version):
("following toolchains: %s" % ("following toolchains: %s" %
", ".join(sorted(supported_toolchains))) ", ".join(sorted(supported_toolchains)))
elif not target.c_lib == 'std': elif target.c_lib not in ['std', 'small']:
result = False result = False
reason = ("Target '%s' must set the " % target.name) + \ reason = (
("'c_lib' to 'std' to be included in the ") + \ "'target.c_lib' for the '{}' target must be set to 'std' or"
("mbed OS 5.0 official release." + linesep) + \ " 'small'.{}"
("Currently it is set to '%s'" % target.c_lib) "It is currently set to '{}'"
).format(target.name, linesep, target.c_lib)
else: else:
result = False result = False