GCC12: fix note: see the '-flto' option documentation for more inform… #5688
This commit is contained in:
parent
4635906ac9
commit
a3a549cfcc
|
@ -88,7 +88,9 @@ endif
|
||||||
|
|
||||||
# Enable this if you want link time optimizations (LTO)
|
# Enable this if you want link time optimizations (LTO)
|
||||||
ifeq ($(USE_LTO),)
|
ifeq ($(USE_LTO),)
|
||||||
USE_LTO = yes
|
# ChibiOS has not yet migrated to gcc12 syntax of '-flto' thus some weird code here
|
||||||
|
USE_LTO = no
|
||||||
|
USE_OPT += -flto=auto
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# If enabled, this option allows to compile the application in THUMB mode.
|
# If enabled, this option allows to compile the application in THUMB mode.
|
||||||
|
|
Loading…
Reference in New Issue