Skip to content

Commit 19359be

Browse files
committed
bricks/common.mk: Set sections flags for all builds.
Otherwise the dbeug build complains about certain unused umm config flags being not set.
1 parent 86e774a commit 19359be

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bricks/_common/common.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,10 @@ else ifeq ($(DEBUG), 2)
222222
CFLAGS += -Os -DNDEBUG -flto=auto
223223
else
224224
CFLAGS += -Os -DNDEBUG -flto=auto
225-
CFLAGS += -fdata-sections -ffunction-sections
226225
endif
227226

227+
CFLAGS += -fdata-sections -ffunction-sections
228+
228229
ifeq ($(PB_MCU_FAMILY),STM32)
229230
# Required for STM32 library
230231
CFLAGS += -D$(PB_CMSIS_MCU)

0 commit comments

Comments
 (0)