GCC12: fix note: see the '-flto' option documentation for more inform… #5688

This commit is contained in:
rusefillc 2023-11-03 14:29:01 -04:00 committed by rusefillc
parent 4635906ac9
commit a3a549cfcc
1 changed files with 3 additions and 1 deletions

View File

@ -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.