Skip to content

Commit 467305f

Browse files
committed
Fix build failure due to C lib selected
Allow target.c_lib to be set to small when Mbed 5 is supported.
1 parent dba3962 commit 467305f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tools/build_api.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -337,12 +337,13 @@ def is_official_target(target_name, version):
337337
("following toolchains: %s" %
338338
", ".join(sorted(supported_toolchains)))
339339

340-
elif not target.c_lib == 'std':
340+
elif target.c_lib not in ['std', 'small']:
341341
result = False
342-
reason = ("Target '%s' must set the " % target.name) + \
343-
("'c_lib' to 'std' to be included in the ") + \
344-
("mbed OS 5.0 official release." + linesep) + \
345-
("Currently it is set to '%s'" % target.c_lib)
342+
reason = (
343+
"'target.c_lib' for the '{}' target must be set to 'std' or"
344+
" 'small'.{}"
345+
"It is currently set to '{}'"
346+
).format(target.name, linesep, target.c_lib)
346347

347348
else:
348349
result = False

0 commit comments

Comments
 (0)