Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions core/.changelog.d/5526.fixed
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Don't allocate tracebacks in optimized builds.
3 changes: 3 additions & 0 deletions core/embed/projects/firmware/mpconfigport.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions core/embed/projects/unix/mpconfigport.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion vendor/micropython