Skip to content

Move nano specs hack into our module cmake files. #968

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

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

Gadgetoid
Copy link
Member

We've been maintaining a downstream patch to disable C++ exception handling, which gives us some headroom before our builds get too big and overwrite themselves at runtime.

Forgetting to apply this patch is a constant source of debugging frustration. It turns out it can just be added to our USER_C_MODULES cmake files instead, where it will implicitly be included when building against our modules.

We've been maintaining a downstream patch to disable C++ exception
handling, which gives us some headroom before our builds get too big and
overwrite themselves at runtime.

Forgetting to apply this patch is a constant source of debugging
frustration. It turns out it can just be added to our USER_C_MODULES cmake
files instead, where it will implicitly be included when building against
our modules.
@Gadgetoid
Copy link
Member Author

🤞 for CI pass.

It's messy, but a lot less hassle to maintain (since the patch breaks every time the MicroPython port CMakeLists changes) can't believe I didn't think of this sooner...

@dpgeorge
Copy link

dpgeorge commented Jul 4, 2024

I much prefer it's done this way than permanently applying these settings into the main rp2 CMakeLists.txt file.

@Gadgetoid Gadgetoid merged commit 3fefcb8 into main Jul 4, 2024
30 checks passed
@Gadgetoid Gadgetoid deleted the patch-remove-exceptions-patch branch October 31, 2024 10:46
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy