-
Notifications
You must be signed in to change notification settings - Fork 3k
Turn on debugging by default when exporting. Remove optimizations for IAR and Uvision #3534
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
@@ -175,7 +175,7 @@ def main(): | |||
type=argparse_profile_filestring_type, | |||
help="Build profile to use. Can be either path to json" \ | |||
"file or one of the default one ({})".format(", ".join(list_profiles())), | |||
default=[]) | |||
default=[argparse_profile_filestring_type('debug')]) |
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.
I don't think this will do what you seem to think. I think it will always start with the debug profile and merge all of the profiles specified on the command line. That's not quite what we want here.
What we want here is for the default to be the debug profile.
/morph export-build |
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.
I fixed it :)
Result: FAILUREYour command has finished executing! Here's what you wrote!
Outputmbed Build Number: 68 Exporter Build failed! |
Please split the first commit into 2 logical separated commits:
|
@@ -351,7 +351,7 @@ | |||
</ArmAdsMisc> | |||
<Cads> | |||
<interw>0</interw> | |||
<Optim>2</Optim> |
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.
a reason for this? shall be a separate commit?
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.
Turns off optimizations by default.
@sarahmarshy Can you please? |
de592be
to
2bf1f6b
Compare
@0xc0170 They are split now. |
/morph export-build |
Result: FAILUREYour command has finished executing! Here's what you wrote!
Outputmbed Build Number: 78 Exporter Build failed! |
@sarahmarshy It looks like there are some ST devices that are failing to compile in debug mode, and I have a feeling that these are probably present when compiling with the mbed build system as well. Would you mind trying the following and seeing if it fails? This failed with make_iar in the CI system.
EDIT: This is the error I'm seeing in CI:
|
Results: GCC_ARM:
IAR:
|
The export-build failure should be fixed now with #3577 being merged. /morph export-build |
Result: SUCCESSYour command has finished executing! Here's what you wrote!
Outputmbed Build Number: 81 All exports and builds passed! |
Description
This PR will turn on flags for debug symbols for all exporters.
It also removes optimization flags from the compiler flags, as those are set in the IDE by the user. If they exist as a hard-coded flag, the user will not be able to use the IDE to turn them off, and instead will have to manually search through the considerably long compiler flags to turn them off (if they realize they their IDE setting did nothing). Not a big deal in some exporters, but uvision makes them into a single text box in the GUI, so you just have to arrow over.
@janjongboom @theotherjimmy
Status
READY
Migrations
Now, if users do not want debug flags when exporting, they should use:
mbed export --profile default
Related: #3532
This is a more generalized version for all the exporters.
Todos