Skip to content
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

cmake template: remove panic_immediate_abort for new idf versions #63

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

benhansen-io
Copy link
Contributor

build-std-features=panic_immediate_abort causes panics to not print
their error messages which is a bad developer experience. Similar to
the Cargo template, do not set this flag for newer espidf versions.

@ivmarkov
Copy link
Collaborator

On the other hand it erases 100 to 200K from the final binary.

@ivmarkov
Copy link
Collaborator

Perhaps we need a .cargo/config.toml for the cmake-first build as well? This way we can put the immediate abort setting as commented out by default, but propery explained with comments?

build-std-features=panic_immediate_abort causes panics to not print
their error messages which is a bad developer experience. Similar to
the Cargo template, do not set this flag for newer espidf versions.

Introduce a .cargo/config.toml to the cmake template to make more
similar to the cargo template.
@benhansen-io
Copy link
Contributor Author

I introduced a minimal .cargo/config.toml to the cmake build. I agree it is better. I add a comment about binary size to that file to both the cargo and cmake build.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants