Merge pull request #12748 from hugueskamba/hk_fix_c_lib_build_failure

Fix build failure due to C lib selected
pull/12808/head
Martin Kojtal 2020-04-15 10:26:09 +02:00 committed by GitHub
commit 35c93011ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 5 deletions

View File

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