Skip to content

Commit 9f44554

Browse files
committed
bricks/_common: use flto=auto
Newer versions of GCC complain that link time optimization is not using parallel tasks. Adding the =auto option makes the warning go away. And probably reduces compile time by a bit.
1 parent 2e9e91c commit 9f44554

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bricks/_common/arm_none_eabi.mk

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,9 +184,9 @@ CFLAGS += -fsingle-precision-constant -Wdouble-promotion
184184
ifeq ($(DEBUG), 1)
185185
CFLAGS += -Og -ggdb
186186
else ifeq ($(DEBUG), 2)
187-
CFLAGS += -Os -DNDEBUG -flto
187+
CFLAGS += -Os -DNDEBUG -flto=auto
188188
else
189-
CFLAGS += -Os -DNDEBUG -flto
189+
CFLAGS += -Os -DNDEBUG -flto=auto
190190
CFLAGS += -fdata-sections -ffunction-sections
191191
endif
192192

0 commit comments

Comments
 (0)