Skip to content

Commit e005458

Browse files
committed
Fix LTO warning by enabling parallel compilation
The previous use of -flto caused a warning: "lto-wrapper: warning: using serial compilation of 2 LTRANS jobs" To resolve this and enable parallel compilation, -flto=auto is now used This option leverages GNU make's job server when available and falls back to autodetection of CPU threads.
1 parent 6647215 commit e005458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ CFLAGS += -flto
3232
endif
3333
endif
3434
ifeq ("$(CC_IS_GCC)", "1")
35-
CFLAGS += -flto
35+
CFLAGS += -flto=auto
3636
endif
3737
ifeq ("$(CC_IS_CLANG)", "1")
3838
CFLAGS += -flto=thin -fsplit-lto-unit

0 commit comments

Comments
 (0)