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:
parent
518c18aef5
commit
339b7cce9b
|
@ -23,8 +23,12 @@ ifneq ($(USE_LDOPT),)
|
|||
endif
|
||||
|
||||
# Link time optimizations
|
||||
ifeq ($(USE_LTO),yes)
|
||||
OPT += -flto=auto
|
||||
ifneq ($(USE_LTO),no)
|
||||
ifeq ($(USE_LTO),yes)
|
||||
OPT += -flto
|
||||
else
|
||||
OPT += -flto=$(USE_LTO)
|
||||
endif
|
||||
endif
|
||||
|
||||
# Undefined state stack size
|
||||
|
|
|
@ -23,8 +23,12 @@ ifneq ($(USE_LDOPT),)
|
|||
endif
|
||||
|
||||
# Link time optimizations
|
||||
ifeq ($(USE_LTO),yes)
|
||||
OPT += -flto=auto
|
||||
ifneq ($(USE_LTO),no)
|
||||
ifeq ($(USE_LTO),yes)
|
||||
OPT += -flto
|
||||
else
|
||||
OPT += -flto=$(USE_LTO)
|
||||
endif
|
||||
endif
|
||||
|
||||
# FPU options default (Cortex-M4 and Cortex-M7 single precision).
|
||||
|
|
|
@ -23,8 +23,12 @@ ifneq ($(USE_LDOPT),)
|
|||
endif
|
||||
|
||||
# Link time optimizations
|
||||
ifeq ($(USE_LTO),yes)
|
||||
OPT += -flto=auto
|
||||
ifneq ($(USE_LTO),no)
|
||||
ifeq ($(USE_LTO),yes)
|
||||
OPT += -flto
|
||||
else
|
||||
OPT += -flto=$(USE_LTO)
|
||||
endif
|
||||
endif
|
||||
|
||||
# Output directory and files
|
||||
|
|
Loading…
Reference in New Issue