kopia lustrzana https://github.com/pimoroni/pimoroni-pico
Replace nosys hack with __verbose_terminate_handler.
rodzic
8a663768ec
commit
25efd312d1
|
@ -4,6 +4,17 @@
|
|||
#include <cstring>
|
||||
#include <cstdio>
|
||||
|
||||
#ifdef PIMORONI_VERBOSE_TERMINATE_HANDLER
|
||||
namespace __gnu_cxx
|
||||
{
|
||||
void __verbose_terminate_handler()
|
||||
{
|
||||
for (;;)
|
||||
;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
enum allocator_mode {
|
||||
FIXED_HEAP = 0,
|
||||
MICROPYTHON
|
||||
|
|
|
@ -11,6 +11,7 @@ target_include_directories(usermod_cppmem INTERFACE
|
|||
|
||||
target_compile_definitions(usermod_cppmem INTERFACE
|
||||
MODULE_CPPMEM_ENABLED=1
|
||||
PIMORONI_VERBOSE_TERMINATE_HANDLER=1
|
||||
)
|
||||
|
||||
target_link_libraries(usermod INTERFACE usermod_cppmem)
|
||||
|
|
|
@ -6,4 +6,3 @@ target_compile_options(usermod INTERFACE $<$<COMPILE_LANGUAGE:CXX>:
|
|||
-fno-rtti
|
||||
-fno-use-cxa-atexit
|
||||
>)
|
||||
target_link_options(usermod INTERFACE -specs=nano.specs)
|
||||
|
|
Ładowanie…
Reference in New Issue