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 38e7b84 commit 043bca8Copy full SHA for 043bca8
ports/rp2/CMakeLists.txt
@@ -365,6 +365,16 @@ target_compile_options(${MICROPY_TARGET} PRIVATE
365
-Werror
366
)
367
368
+# Do not include stack unwinding & exception handling for C++ user modules
369
+target_compile_definitions(usermod INTERFACE PICO_CXX_ENABLE_EXCEPTIONS=0)
370
+target_compile_options(usermod INTERFACE $<$<COMPILE_LANGUAGE:CXX>:
371
+ -fno-exceptions
372
+ -fno-unwind-tables
373
+ -fno-rtti
374
+ -fno-use-cxa-atexit
375
+>)
376
+target_link_options(usermod INTERFACE -specs=nano.specs)
377
+
378
set_source_files_properties(
379
${PICO_SDK_PATH}/src/rp2_common/pico_double/double_math.c
380
${PICO_SDK_PATH}/src/rp2_common/pico_float/float_math.c
0 commit comments