-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Make exceptions a configurable menu #5434
Conversation
Add a menu, Exceptions, which allows exceptions to be disabled for ROM sensitive scripts. Default is enabled.
Excuse my ignorance, but why is this enabled by default? :) |
@andrethomas because Exceptions are a standard C++ language feature, because they're needed to gracefully handle error conditions in class constructors, because we want to replace some custom code with STL standard calls, some of which rely on Exceptions, and because we want to bring in a subset of boost, some of which relies on Exceptions. |
@devyte Thanks for the clarity, makes sense now! The reason I was asking is that the current codebase fails for me which I guess is because libstdc++-nox.a does not exist yet. I'm weighing up the flash utilization against 2.4.2. |
Hi Compiling from command line
It does not seem to make any difference whether exception=enabled or disabled It still produced the same binary for me and it is confirmed by the ld script in the build folder
This only seems to happen when compiling from command line - when compiling using the Arduino IDE it appears to work as expected. Any ideas? |
Even if I manually edit the boards.txt to disable it irrespective of the selection it still seems to result in an exception enabled binary
|
Hmm, sorry false alarm! My json package build script did not update platform.txt :| |
Thanks for the update. On closed bugs/merges sometimes comments get overlooked, so sorry for not replying before you figured it out yourself! |
@earlephilhower No sweat - I still think I'm missing something there but I'll figure it out. Great work... can only dream to have as much time and dedication to a single project as you guys have! Here's hoping for a bug-free release! |
Add a menu, Exceptions, which allows exceptions to be disabled for ROM
sensitive scripts. Default is enabled.