Skip to content

Commit 35c9301

Browse files
authored
Merge pull request #12748 from hugueskamba/hk_fix_c_lib_build_failure
Fix build failure due to C lib selected
2 parents f9052e3 + 467305f commit 35c9301

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
@@ -348,12 +348,13 @@ def is_official_target(target_name, version):
348348
("following toolchains: %s" %
349349
", ".join(sorted(supported_toolchains)))
350350

351-
elif not target.c_lib == 'std':
351+
elif target.c_lib not in ['std', 'small']:
352352
result = False
353-
reason = ("Target '%s' must set the " % target.name) + \
354-
("'c_lib' to 'std' to be included in the ") + \
355-
("mbed OS 5.0 official release." + linesep) + \
356-
("Currently it is set to '%s'" % target.c_lib)
353+
reason = (
354+
"'target.c_lib' for the '{}' target must be set to 'std' or"
355+
" 'small'.{}"
356+
"It is currently set to '{}'"
357+
).format(target.name, linesep, target.c_lib)
357358

358359
else:
359360
result = False

0 commit comments

Comments
 (0)