Skip to content

Conversation

@andreaskurz
Copy link
Contributor

@andreaskurz andreaskurz commented May 9, 2025

Checklist

By completing this PR sufficiently, you help us to review this Pull Request quicker and also help improve the quality of Release Notes

  • Please provide specific title of the PR describing the change

Description of Change

This change will fix build errors with CMake as size optimization is missing and therefore it doesn't compile successfully. Also the documentation is extended to give a hint how to use CMake in this repository at all.

andreaskurz and others added 3 commits May 9, 2025 10:17
This flag is also present in the Makefile and optimises the resulting binary for the size of the binary. Without that flag the flash consumption would be too high to fit inside the allocated space.

Signed-off-by: Andreas Kurz <[email protected]>
In this repository CMake and Make co-exists. Unfortunately there was no
documentation on how to properly use CMake so this is a starting point.

Signed-off-by: Andreas Kurz <[email protected]>
Copy link
Member

@hathach hathach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you, I change to use default CMAKE_BUILD_TYPE=MinSizeRel instead of forcing -Os for all build type. Also update doc for make as default generator (which is what most people would do).

@hathach hathach merged commit 0e98348 into adafruit:master Jun 30, 2025
50 checks passed
@andreaskurz
Copy link
Contributor Author

thank you, I change to use default CMAKE_BUILD_TYPE=MinSizeRel instead of forcing -Os for all build type. Also update doc for make as default generator (which is what most people would do).

Ah, thanks :)
Just learned about that option last weak in a customer project and forgot to update here.

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.

2 participants