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
Set macro NDEBUG for release builds #347
Comments
@betzw Is this still relevant? I think this was fixed in the mbed OS build tools. |
After merging the latest version of the |
@betzw The -o flag has been replaced with the more general |
Maybe you should reflect this in the documentation including the help message which gets printed by |
So then it should be possible to add |
Yup, |
Sorry, I wasn't clear. I mean, |
@pan- Oh you're absolutely right, my bad! Yeah you technically can do that since its just a compiler flag 😄 Though I would imagine we wouldn't be adding many (if any) compiler flags directly to the default build profiles since we then can't configure them. However with custom build profiles, you're free to do as you wish. Just know that things may break. (not necessarily from |
As I can see you have defined a Btw, how do those profiles work? Do they all inherit from |
The documentation for build profiles are here: https://github.com/ARMmbed/mbed-os/blob/master/docs/Toolchain_Profiles.md I'm actually not 100% sure about the inheritance of the profiles. @theotherjimmy could you clarify this and maybe add it to the documentation? |
Ping @theotherjimmy |
1 similar comment
Ping @theotherjimmy |
It seems as if the macro NDEBUG gets never set even if doing a release build.
Or is this intentionally left to be specified on the command line with
-DNDEBUG
?The text was updated successfully, but these errors were encountered: