feat(vendor): disable traceback allocation in PYOPT=1 builds

This commit is contained in:
Roman Zeyde
2025-09-11 12:56:41 +03:00
committed by Roman Zeyde
parent 78fbae71ef
commit b5d9ecde18
4 changed files with 8 additions and 1 deletions

View File

@@ -0,0 +1 @@
Don't allocate tracebacks in optimized builds.

View File

@@ -161,6 +161,9 @@
#define MICROPY_PY_USOCKET (0)
#define MICROPY_PY_NETWORK (0)
// allocate traceback data only on debug builds
#define MICROPY_PY_SYS_TRACEBACK_DISABLE (PYOPT)
#define MICROPY_PY_TREZORCONFIG (1)
#define MICROPY_PY_TREZORCRYPTO (1)
#define MICROPY_PY_TREZORIO (1)

View File

@@ -175,6 +175,9 @@
#define MICROPY_PY_USOCKET (0)
#define MICROPY_PY_NETWORK (0)
// allocate traceback data only on debug builds
#define MICROPY_PY_SYS_TRACEBACK_DISABLE (PYOPT)
// Debugging and interactive functionality.
#define MICROPY_DEBUG_PRINTERS (1)
// Printing debug to stderr may give tests which