kopia lustrzana https://github.com/pimoroni/pimoroni-pico
10 wiersze
359 B
CMake
10 wiersze
359 B
CMake
![]() |
# Do not include stack unwinding & exception handling for C++ user modules
|
||
|
target_compile_definitions(usermod INTERFACE PICO_CXX_ENABLE_EXCEPTIONS=0)
|
||
|
target_compile_options(usermod INTERFACE $<$<COMPILE_LANGUAGE:CXX>:
|
||
|
-fno-exceptions
|
||
|
-fno-unwind-tables
|
||
|
-fno-rtti
|
||
|
-fno-use-cxa-atexit
|
||
|
>)
|
||
|
target_link_options(usermod INTERFACE -specs=nano.specs)
|