Added release with debug info DEBUG type

This commit is contained in:
Andrey Mironov 2018-04-12 10:03:50 +03:00
parent fbd8f07440
commit a3f33f996f
1 changed files with 7 additions and 1 deletions

View File

@ -24,7 +24,10 @@ OPTIONS ?=
# compile for OpenPilot BootLoader support
OPBL ?= no
# Debugger optons, must be empty or GDB
# Debugger optons:
# empty - ordinary build with all optimizations enabled
# RELWITHDEBINFO - ordinary build with debug symbols and all optimizations enabled
# GDB - debug build with minimum number of optimizations
DEBUG ?=
# Insert the debugging hardfault debugger
@ -117,6 +120,9 @@ OPTIMISE_DEFAULT := -Og
LTO_FLAGS := $(OPTIMISE_DEFAULT)
DEBUG_FLAGS = -ggdb3 -DDEBUG
else
ifeq ($(DEBUG),RELWITHDEBINFO)
DEBUG_FLAGS = -ggdb3
endif
OPTIMISATION_BASE := -flto -fuse-linker-plugin -ffast-math
OPTIMISE_DEFAULT := -O2
OPTIMISE_SPEED := -Ofast