Merge pull request #5673 from DieHertz/add-release-with-debug-info

Added release with debug info DEBUG type
This commit is contained in:
Anders Höglund 2018-04-12 09:27:27 +02:00 committed by GitHub
commit 3cf1851382
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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