Skip to content

Commit 0b854ba

Browse files
committed
bricks/technichub,movehub: Set CSUPEROPT for build size.
Reduces build size: Move Hub: -2400 Technic Hub: -2400 At the cost of slightly slower performance of the VM. These hubs are almost running out of space, so this is more important.
1 parent 3fe9ffc commit 0b854ba

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

bricks/movehub/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@ PB_LIB_BLUENRG = 1
1111
PB_FROZEN_MODULES = 0
1212
MICROPY_ROM_TEXT_COMPRESSION = 0 # Needed for PYBRICKS_OPT_TERSE_ERR
1313

14+
# Reduce code size at the cost of slower performance.
15+
override CSUPEROPT = -Os
16+
1417
include ../_common/common.mk

bricks/technichub/Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,7 @@ PB_LIB_BLE5STACK = 1
1111
PB_LIB_LSM6DS3TR_C = 1
1212
PB_FROZEN_MODULES = 1
1313

14+
# Reduce code size at the cost of slower performance.
15+
override CSUPEROPT = -Os
16+
1417
include ../_common/common.mk

0 commit comments

Comments
 (0)