-
Notifications
You must be signed in to change notification settings - Fork 3k
tools: Support default_lib and c_lib #13007
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
Conversation
@Patater, thank you for your changes. |
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.
May need extra work to check out the code that handles default_lib.
tools/toolchains/mbed_toolchain.py
Outdated
"target.default_lib is no longer supported, please use target.c_lib for C library selection." | ||
) | ||
if hasattr(target, "c_lib"): | ||
if hasattr(target, "default_lib") or hasattr(target, "c_lib"): |
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 like this allows default_lib to be specified without failing, but the code doesn't appear to do anything with this attribute here. I don't know whether the code handling default_lib has been removed, or that it still exists somewhere in the codebase and remains unaltered. Needs checking...
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.
Yes, this obviously won't work as intended. Reworked.
@@ -652,7 +652,7 @@ def is_not_supported_error(self, output): | |||
|
|||
@abstractmethod | |||
def parse_output(self, output): | |||
"""Take in compiler output and extract sinlge line warnings and errors from it. | |||
"""Take in compiler output and extract single line warnings and errors from it. |
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.
Good catch
For backwards compatibility reasons, since the latest Mbed OS tools must be able to build any previous online-compiler-supported version of Mbed OS, allow targets to use `default_lib` or `c_lib`. This should enable the tools to work with Mbed OS 5 style targets.json.
6da8b29
to
5e65cf7
Compare
Rebased to use default_lib or c_lib as the desired C library |
CI started |
This one and another fix to tools, are these for 6.0 rc2? |
Test run: SUCCESSSummary: 6 of 6 test jobs passed |
Possibly more needed to fix. We haven't hit the bottom of debugging yet; we haven't had a full run of our tests working yet. |
Summary of changes
For backwards compatibility reasons, since the latest Mbed OS tools must be able to build any previous online-compiler-supported version of Mbed OS, allow targets to use
default_lib
orc_lib
. This should enable the tools to work with Mbed OS 5 style targets.json.Impact of changes
None
Migration actions required
None
Documentation
None
Pull request type
Test results
Reviewers