Specifiable -fto parameter in makefiles.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@16328 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2023-07-10 16:32:51 +00:00
parent 518c18aef5
commit 339b7cce9b
3 changed files with 18 additions and 6 deletions

View File

@ -23,8 +23,12 @@ ifneq ($(USE_LDOPT),)
endif endif
# Link time optimizations # Link time optimizations
ifeq ($(USE_LTO),yes) ifneq ($(USE_LTO),no)
OPT += -flto=auto ifeq ($(USE_LTO),yes)
OPT += -flto
else
OPT += -flto=$(USE_LTO)
endif
endif endif
# Undefined state stack size # Undefined state stack size

View File

@ -23,8 +23,12 @@ ifneq ($(USE_LDOPT),)
endif endif
# Link time optimizations # Link time optimizations
ifeq ($(USE_LTO),yes) ifneq ($(USE_LTO),no)
OPT += -flto=auto ifeq ($(USE_LTO),yes)
OPT += -flto
else
OPT += -flto=$(USE_LTO)
endif
endif endif
# FPU options default (Cortex-M4 and Cortex-M7 single precision). # FPU options default (Cortex-M4 and Cortex-M7 single precision).

View File

@ -23,8 +23,12 @@ ifneq ($(USE_LDOPT),)
endif endif
# Link time optimizations # Link time optimizations
ifeq ($(USE_LTO),yes) ifneq ($(USE_LTO),no)
OPT += -flto=auto ifeq ($(USE_LTO),yes)
OPT += -flto
else
OPT += -flto=$(USE_LTO)
endif
endif endif
# Output directory and files # Output directory and files