defs-*.mk: Add USE_DISABLE_COMPILER_OPTIMISATION_OPTS

USE_DISABLE_COMPILER_OPTIMISATION_OPTS = true disables options targeted
at disabling optimization features, which were introduced to facilitate
debugging in the first place, but make the commandline harder to compare
to others while troubleshooting the compile process

Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
Jan Lindemann 2019-03-13 08:53:56 +00:00
commit 5aee508df9
3 changed files with 3 additions and 1 deletions

View file

@ -422,7 +422,7 @@ endif
ifeq ($(USE_COMPILER_OPTIMIZATION_OPTS),true)
BUILD_CFLAGS += -funroll-loops -O3
BUILD_CPPFLAGS += -funroll-loops -O3
else
else ifeq ($(USE_DISABLE_COMPILER_OPTIMISATION_OPTS),true)
NO_OPT_FLAGS = \
-O0 -g -fno-inline -fno-omit-frame-pointer \
-fno-optimize-sibling-calls \

View file

@ -283,6 +283,7 @@ COMPILE_DEBUG_CODE ?= true
#COMPILE_DEBUG_LOG ?= true
USE_COMPILER_DEBUG_OPTS ?= true
#USE_COMPILER_OPTIMIZATION_OPTS?= true
USE_DISABLE_COMPILER_OPTIMISATION_OPTS ?= true
ifeq ($(TARGET),mingw)
USE_STACK_PROTECTOR ?= false
else

View file

@ -283,6 +283,7 @@ LOG_THREAD_NAMES ?= true
#COMPILE_DEBUG_LOG ?= true
USE_COMPILER_DEBUG_OPTS ?= true
USE_COMPILER_OPTIMIZATION_OPTS?= true
USE_DISABLE_COMPILER_OPTIMISATION_OPTS ?= false
USE_STACK_PROTECTOR ?= true
#USE_STACK_CHECKER ?= true