mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-27 13:16:35 +00:00
Config.in: add -Ofast option
-Ofast (introduced in GCC 4.6) It combines the existing optimization level -O3 with options that can affect standards compliance but result in better optimized code. For example, -Ofast enables -ffast-math. Signed-off-by: Joshua Henderson <joshua.henderson@microchip.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
ef3304dabc
commit
ed6a7e18af
11
Config.in
11
Config.in
@ -527,6 +527,17 @@ config BR2_OPTIMIZE_S
|
|||||||
-ftree-vect-loop-version
|
-ftree-vect-loop-version
|
||||||
This is the default.
|
This is the default.
|
||||||
|
|
||||||
|
config BR2_OPTIMIZE_FAST
|
||||||
|
bool "optimize for fast"
|
||||||
|
depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_6
|
||||||
|
help
|
||||||
|
Optimize for fast. Disregard strict standards
|
||||||
|
compliance. -Ofast enables all -O3 optimizations. It also
|
||||||
|
enables optimizations that are not valid for all
|
||||||
|
standard-compliant programs. It turns on -ffast-math and the
|
||||||
|
Fortran-specific -fstack-arrays, unless -fmax-stack-var-size
|
||||||
|
is specified, and -fno-protect-parens.
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
config BR2_GOOGLE_BREAKPAD_ENABLE
|
config BR2_GOOGLE_BREAKPAD_ENABLE
|
||||||
|
@ -128,6 +128,9 @@ endif
|
|||||||
ifeq ($(BR2_OPTIMIZE_S),y)
|
ifeq ($(BR2_OPTIMIZE_S),y)
|
||||||
TARGET_OPTIMIZATION = -Os
|
TARGET_OPTIMIZATION = -Os
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(BR2_OPTIMIZE_FAST),y)
|
||||||
|
TARGET_OPTIMIZATION = -Ofast
|
||||||
|
endif
|
||||||
ifeq ($(BR2_DEBUG_1),y)
|
ifeq ($(BR2_DEBUG_1),y)
|
||||||
TARGET_DEBUGGING = -g1
|
TARGET_DEBUGGING = -g1
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user