We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee10360 commit 65913d8Copy full SHA for 65913d8
examples/usercmodule/cppexample/micropython.cmake
@@ -14,3 +14,14 @@ target_include_directories(usermod_cppexample INTERFACE
14
15
# Link our INTERFACE library to the usermod target.
16
target_link_libraries(usermod INTERFACE usermod_cppexample)
17
+
18
+# Do not include stack unwinding & exception handling for C++ user modules
19
+# This can dramatically reduce build size on embedded ports like rp2
20
+# target_compile_definitions(usermod INTERFACE PICO_CXX_ENABLE_EXCEPTIONS=0)
21
+# target_compile_options(usermod INTERFACE $<$<COMPILE_LANGUAGE:CXX>:
22
+# -fno-exceptions
23
+# -fno-unwind-tables
24
+# -fno-rtti
25
+# -fno-use-cxa-atexit
26
+# >)
27
+# target_link_options(usermod INTERFACE -specs=nano.specs)
0 commit comments