Added release with debug info DEBUG type
This commit is contained in:
parent
fbd8f07440
commit
a3f33f996f
8
Makefile
8
Makefile
|
@ -24,7 +24,10 @@ OPTIONS ?=
|
||||||
# compile for OpenPilot BootLoader support
|
# compile for OpenPilot BootLoader support
|
||||||
OPBL ?= no
|
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 ?=
|
DEBUG ?=
|
||||||
|
|
||||||
# Insert the debugging hardfault debugger
|
# Insert the debugging hardfault debugger
|
||||||
|
@ -117,6 +120,9 @@ OPTIMISE_DEFAULT := -Og
|
||||||
LTO_FLAGS := $(OPTIMISE_DEFAULT)
|
LTO_FLAGS := $(OPTIMISE_DEFAULT)
|
||||||
DEBUG_FLAGS = -ggdb3 -DDEBUG
|
DEBUG_FLAGS = -ggdb3 -DDEBUG
|
||||||
else
|
else
|
||||||
|
ifeq ($(DEBUG),RELWITHDEBINFO)
|
||||||
|
DEBUG_FLAGS = -ggdb3
|
||||||
|
endif
|
||||||
OPTIMISATION_BASE := -flto -fuse-linker-plugin -ffast-math
|
OPTIMISATION_BASE := -flto -fuse-linker-plugin -ffast-math
|
||||||
OPTIMISE_DEFAULT := -O2
|
OPTIMISE_DEFAULT := -O2
|
||||||
OPTIMISE_SPEED := -Ofast
|
OPTIMISE_SPEED := -Ofast
|
||||||
|
|
Loading…
Reference in New Issue