mirror of https://github.com/rusefi/rusefi-1.git
-g3 to -g (#2256)
Co-authored-by: Matthew Kennedy <makenne@microsoft.com>
This commit is contained in:
parent
6ffddb8e3a
commit
10c31c2955
|
@ -23,10 +23,10 @@ include rusefi.mk
|
|||
|
||||
ifeq ($(DEBUG_LEVEL_OPT),)
|
||||
# Default to a release build - but leave in debug info. It doesn't change the hex/bin output.
|
||||
DEBUG_LEVEL_OPT = -O2 -ggdb -g3
|
||||
DEBUG_LEVEL_OPT = -O2 -ggdb -g
|
||||
# Comment the above and uncomment the line below if you want to debug the firmware (it's difficult-to-impossible
|
||||
# to debug firmware with optimization enabled).
|
||||
# DEBUG_LEVEL_OPT = -O0 -ggdb -g3
|
||||
# DEBUG_LEVEL_OPT = -O0 -ggdb -g
|
||||
endif
|
||||
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
# for 'release' options see 'clean_compile_two_versions.bat' file
|
||||
|
||||
ifeq ($(DEBUG_LEVEL_OPT),)
|
||||
# this value would be used by default. For 'debug' configuration override with '-O0 -ggdb -g3' or something along these lines
|
||||
# this value would be used by default. For 'debug' configuration override with '-O0 -ggdb -g' or something along these lines
|
||||
DEBUG_LEVEL_OPT = -O2
|
||||
DDEFS += -DEFI_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_STACK_CHECK=FALSE -DCH_DBG_FILL_THREADS=FALSE -DCH_DBG_THREADS_PROFILING=FALSE
|
||||
endif
|
||||
|
|
|
@ -4,6 +4,6 @@ export PROJECT_BOARD=microrusefi
|
|||
export PROJECT_CPU=ARCH_STM32F4
|
||||
export EXTRA_PARAMS="-DSHORT_BOARD_NAME=mre_f4"
|
||||
|
||||
# export DEBUG_LEVEL_OPT="-O0 -ggdb -g3"
|
||||
# export DEBUG_LEVEL_OPT="-O0 -ggdb -g"
|
||||
|
||||
bash ../common_make.sh
|
||||
|
|
|
@ -7,7 +7,7 @@ export EXTRA_PARAMS="-DHW_CHECK_MODE=TRUE -DANALOG_HW_CHECK_MODE=TRUE -DHW_CHECK
|
|||
export DEFAULT_ENGINE_TYPE=-DDEFAULT_ENGINE_TYPE=MRE_BOARD_NEW_TEST
|
||||
|
||||
# this QC configuration is used to assert our status with debug info
|
||||
export DEBUG_LEVEL_OPT="-O0 -ggdb -g3"
|
||||
export DEBUG_LEVEL_OPT="-O0 -ggdb -g"
|
||||
|
||||
bash ../common_make.sh
|
||||
|
||||
|
|
|
@ -4,6 +4,6 @@ export PROJECT_BOARD=microrusefi
|
|||
export PROJECT_CPU=ARCH_STM32F4
|
||||
export EXTRA_PARAMS="-DSHORT_BOARD_NAME=mre_f4 -DIGNORE_FLASH_CONFIGURATION=TRUE"
|
||||
|
||||
# export DEBUG_LEVEL_OPT="-O0 -ggdb -g3"
|
||||
# export DEBUG_LEVEL_OPT="-O0 -ggdb -g"
|
||||
|
||||
bash ../common_make.sh
|
||||
|
|
|
@ -4,6 +4,6 @@ export PROJECT_BOARD=proteus
|
|||
export PROJECT_CPU=ARCH_STM32F4
|
||||
export EXTRA_PARAMS=-DSHORT_BOARD_NAME=proteus_f4
|
||||
|
||||
# export DEBUG_LEVEL_OPT="-O0 -ggdb -g3"
|
||||
# export DEBUG_LEVEL_OPT="-O0 -ggdb -g"
|
||||
|
||||
bash ../common_make.sh
|
||||
|
|
|
@ -6,6 +6,6 @@ export EXTRA_PARAMS="-DVR_HW_CHECK_MODE=TRUE -DHW_CHECK_ALWAYS_STIMULATE=TRUE -D
|
|||
|
||||
export DEFAULT_ENGINE_TYPE=-DDEFAULT_ENGINE_TYPE=PROTEUS_QC_TEST_BOARD
|
||||
|
||||
# export DEBUG_LEVEL_OPT="-O0 -ggdb -g3"
|
||||
# export DEBUG_LEVEL_OPT="-O0 -ggdb -g"
|
||||
|
||||
bash ../common_make.sh
|
||||
|
|
|
@ -8,6 +8,6 @@ export EXTRA_PARAMS="-DVR_HW_CHECK_MODE=TRUE -DHW_CHECK_ALWAYS_STIMULATE=TRUE -D
|
|||
|
||||
export DEFAULT_ENGINE_TYPE=-DDEFAULT_ENGINE_TYPE=PROTEUS_QC_TEST_BOARD
|
||||
|
||||
# export DEBUG_LEVEL_OPT="-O0 -ggdb -g3"
|
||||
# export DEBUG_LEVEL_OPT="-O0 -ggdb -g"
|
||||
|
||||
bash ../common_make.sh
|
||||
|
|
|
@ -27,8 +27,8 @@ CONFDIR = .
|
|||
# Compiler options here.
|
||||
ifeq ($(USE_OPT),)
|
||||
# this config if debugging is needed, but the binary is about 50M
|
||||
# USE_OPT = -Wall -ggdb -Werror-implicit-function-declaration -Werror -Wno-error=pointer-sign -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=sign-compare -Wno-error=unused-parameter -Wno-error=missing-field-initializers -Wno-error=write-strings -Wno-error=strict-aliasing
|
||||
# USE_OPT = -Wall -O0 -ggdb -g3 -Wno-error=implicit-fallthrough -Werror-implicit-function-declaration -Werror -Wno-error=pointer-sign -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=sign-compare -Wno-error=unused-parameter -Wno-error=missing-field-initializers -Wno-error=write-strings
|
||||
# USE_OPT = -Wall -ggdb -Werror-implicit-function-declaration -Werror -Wno-error=pointer-sign -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=sign-compare -Wno-error=unused-parameter -Wno-error=missing-field-initializers -Wno-error=write-strings -Wno-error=strict-aliasing
|
||||
# USE_OPT = -Wall -O0 -ggdb -g -Wno-error=implicit-fallthrough -Werror-implicit-function-declaration -Werror -Wno-error=pointer-sign -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=sign-compare -Wno-error=unused-parameter -Wno-error=missing-field-initializers -Wno-error=write-strings
|
||||
# this config producec a smaller binary file
|
||||
# 7.3 compiler would want -Wno-error=implicit-fallthrough while 6.4 does not know about it
|
||||
# see https://github.com/rusefi/rusefi/issues/517
|
||||
|
|
|
@ -20,7 +20,7 @@ include $(PROJECT_DIR)/rusefi_rules.mk
|
|||
ifeq ($(USE_OPT),)
|
||||
# -O2 is needed for mingw, without it there is a linking issue to isnanf?!?!
|
||||
#USE_OPT = $(RFLAGS) -O2 -fgnu89-inline -ggdb -fomit-frame-pointer -falign-functions=16 -std=gnu99 -Werror-implicit-function-declaration -Werror -Wno-error=pointer-sign -Wno-error=unused-function -Wno-error=unused-variable -Wno-error=sign-compare -Wno-error=unused-parameter -Wno-error=missing-field-initializers
|
||||
USE_OPT = -c -Wall -O0 -ggdb -g3
|
||||
USE_OPT = -c -Wall -O0 -ggdb -g
|
||||
USE_OPT += -fprofile-arcs -ftest-coverage
|
||||
USE_OPT += -Werror=missing-field-initializers
|
||||
endif
|
||||
|
|
Loading…
Reference in New Issue