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
|
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
|
||||||
|
|
|
@ -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).
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue