-
Notifications
You must be signed in to change notification settings - Fork 3k
Replace mbed_mem_tracing_enabled macro with config option #7402
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
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.
This looks reasonable to me
@ARMmbed/mbed-os-tools Can tools handle this - make changes like this non-breaking? @kegilbert The breaking change is that it would produce warnings and a user should remove the macro, and use a config? Or is there anything else to be done? |
@0xc0170 There is no current method for deprecating @kegilbert Please avoid using internal links. |
@0xc0170 Correct, you should get some build warnings about the macro being redefined. The macro definition should be removed and replaced by the equivalent config option. Updated the links as well. |
Have a PR up to fix the pr-head failure: https://github.com/ARMmbed/mbed-os-cliapp/pull/436 If this is passed review we can remove the |
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.
LGTM. Considering if used as it was, would lead to a warning that can be easily eliminated and proper config set.
It's still not merged, any progress? |
We have a bit of a chicken and egg issue with the CI, haven't heard back from Seppo on a recommended path forward (haven't pushed the issue to be fair, got caught up with other projects). The issue is I need the changes to go into Mbed OS so I can update the mbed_lib.json commit hash to include these changes in the mbed-cli repo so that can pass its CI. However I can't merge the changes here until the mbed-cli CI passes. What I could do is rebase my changes in a separate branch and update the mbed_lib hash in mbed-cli with that branch but seems a bit jank to have master mbed-cli pointing to a branch of mbed-os. Thoughts? |
@SeppoTakalo or @tommikas would be better to advice here how to proceed. |
@kegilbert Something you could do is update mbed-cli to this pr's head ref. I had to do something similar when updating mbed-cli for py3. |
e2b5541
to
9b53d12
Compare
@cmonr This no longer has a dependency on the mbed-os-cliapp changes as those don't get built in pr-head right now. This is passing Travis, should I remove the do not merge tag? For after the patch release code freeze. |
@kegilbert Ah, didn't realize that was the reason DNM was added (I should've added a note). |
@kegilbert @ARMmbed/mbed-os-test Does anything in CI need to be updates and/or disabled to test this PR? Will any changes be needed after it's merged? |
@cmonr Only a docs update and patch note for the minor breaking change I believe, don't think this macro is used at the moment in Mbed OS tests outside of the one I changed in this PR: |
@cmonr |
/morph build |
Build : SUCCESSBuild number : 2913 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 2533 |
Test : SUCCESSBuild number : 2663 |
Description
Move the memory tracing enabled macro to a config option - #5225
There are a few macros that'd benefit from this (heap/stack/etc reporting for one). This does however break existing mbed_app.json files that relied on just defining the macro (you should get compile time warnings about redefinitions if you are defining the macro separately):
Is this a reasonable path forward? How should we handle transitioning to the config option definition rather than if the macro exists style?
NOTE Need to update the docs to match this as well. See - ARMmbed/mbed-os-5-docs#275
Pull request type