-
Notifications
You must be signed in to change notification settings - Fork 3k
Replace small with std C lib if not supported by a target's toolchain #12691
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace small with std C lib if not supported by a target's toolchain #12691
Conversation
@hugueskamba, thank you for your changes. |
tools/toolchains/gcc.py
Outdated
toolchain = "gcc_arm" | ||
|
||
if is_std_c_lib_supported_instead_small_c_lib(target, toolchain): | ||
# Replace small C lib with std if there is no small C lib support | ||
target.c_lib = "std" | ||
|
||
self.check_c_lib_supported(target, toolchain) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See above
d072cb8
to
0e9c83e
Compare
Pull request has been modified.
0e9c83e
to
12704f8
Compare
Pull request has been modified.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for being picky on this, but I'm keen that we make the code that we add better than that which already exists. This codebase is pretty bad generally: anything we can do to improve matters helps a great deal!
Pull request has been modified.
tools/toolchains/mbed_toolchain.py
Outdated
""" | ||
Check if a library type is supported by a toolchain for a given target. | ||
|
||
Return True if the library type is supported, False if not supported, and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing something here....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request has been modified.
28d8665
to
7d57bdf
Compare
This force-push squashes all commits. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great!
The travis events issue was fixed in https://github.com/ARMmbed/mbed-os/pull/12629/files |
Display a post-build warning indicating to the user that the standard C library was used instead of the small C library if the former is not supported.
7d57bdf
to
0e5b71f
Compare
Pull request has been modified.
This force-push rebased from master to ensure the travis events issue is fixed. |
Travis events issue is fixed. Let's start CI next. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Re-reviewed.
CI started, I'm assuming CI on master is working again .... |
Test run: FAILEDSummary: 1 of 6 test jobs failed Failed test jobs:
|
Known issue, will be restarted |
Has the CI issue been fixed? |
No, still fails for most of PRs, multiple issues being looked at by @ARMmbed/mbed-os-test team |
Started CI |
Test run: FAILEDSummary: 2 of 3 test jobs failed Failed test jobs:
|
restarted CI |
Test run: FAILEDSummary: 2 of 3 test jobs failed Failed test jobs:
|
CI restarted |
Test run: SUCCESSSummary: 6 of 6 test jobs passed |
Summary of changes
Display a post-build warning indicating to the user that the standard C
library was used instead of the small C library if the former is not
supported.
fixes #12585
Impact of changes
Targets that have specified to build with the small C lib can still be built with the standard C lib if the small C lib is not supported for a given toolchain. For example, as Mbed 2 targets typically specify the small C lib, they can still be built with the IAR toolchain (which does not have a small C lib) if the standard C lib is supported.
Migration actions required
N/A
Documentation
Pull request type
Test results
Reviewers
@evedon @rajkan01 @mark-edgeworth @madchutney