From 567de7e64386f5607c4205aecc43e7d87fd1f6a0 Mon Sep 17 00:00:00 2001 From: Roman Zeyde Date: Fri, 28 Mar 2025 11:36:18 +0300 Subject: [PATCH] feat(core): increase MicroPython bytecode optimizations [no changelog] --- core/SConscript.firmware | 2 +- core/SConscript.unix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/SConscript.firmware b/core/SConscript.firmware index decdb06d9d..48effb8b41 100644 --- a/core/SConscript.firmware +++ b/core/SConscript.firmware @@ -483,7 +483,7 @@ env.Replace( ASPPFLAGS='$CFLAGS $CCFLAGS', ) -BYTECODE_OPTIMIZATION = {'0': '0', '1': '1'}[PYOPT] +BYTECODE_OPTIMIZATION = {'0': '0', '1': '3'}[PYOPT] env.Replace( HEADERTOOL='headertool', diff --git a/core/SConscript.unix b/core/SConscript.unix index 1ec15b551c..5cceeb51b3 100644 --- a/core/SConscript.unix +++ b/core/SConscript.unix @@ -532,7 +532,7 @@ try: except OSError: print("SDL2 not installed, Emulator build is not possible") -BYTECODE_OPTIMIZATION = {'0': '0', '1': '1'}[PYOPT] +BYTECODE_OPTIMIZATION = {'0': '0', '1': '3'}[PYOPT] env.Replace( PYTHON='python',