Merge pull request #13423 from kaspar030/turn_on_native_debug

native: turn on creation of debug symbols (CFLAGS += -g)
This commit is contained in:
Cenk Gündoğan 2020-02-20 18:20:11 +01:00 committed by GitHub
commit 86fcc35994
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,9 @@ export CGANNOTATE ?= cg_annotate
export GPROF ?= gprof
# basic cflags:
CFLAGS += -Wall -Wextra -pedantic
CFLAGS += -Wall -Wextra -pedantic $(CFLAGS_DBG)
CFLAGS_DBG ?= -g3
# default std set to gnu99 of not overwritten by user
ifeq (,$(filter -std=%, $(CFLAGS)))
CFLAGS += -std=gnu11