mirror of
https://github.com/trezor/trezor-firmware.git
synced 2026-02-20 00:33:30 +01:00
feat(vendor): disable traceback allocation in PYOPT=1 builds
This commit is contained in:
1
core/.changelog.d/5526.fixed
Normal file
1
core/.changelog.d/5526.fixed
Normal file
@@ -0,0 +1 @@
|
||||
Don't allocate tracebacks in optimized builds.
|
||||
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
2
vendor/micropython
vendored
2
vendor/micropython
vendored
Submodule vendor/micropython updated: c718974b98...73ccede09a
Reference in New Issue
Block a user