0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-18 10:53:48 +02:00

configure: Move debug switches to separate condition.

This commit is contained in:
Jason Volk 2019-05-16 18:36:15 -07:00
parent ed11153d27
commit 0c01304a94

View file

@ -485,16 +485,8 @@ AM_COND_IF([OPTIMIZE],
CXXFLAGS+=" -fbranch-target-load-optimize"
CXXFLAGS+=" -frerun-loop-opt"
CXXFLAGS+=" -fdevirtualize-at-ltrans"
dnl Note these flags are unreliable with LTO
CXXFLAGS+=" -g"
CXXFLAGS+=" -ggdb"
], [
optimize="no"
CXXFLAGS+=" -g"
CXXFLAGS+=" -ggdb"
CXXFLAGS+=" -fvar-tracking"
CXXFLAGS+=" -fvar-tracking-assignments"
CXXFLAGS+=" -falign-functions"
])
@ -502,6 +494,18 @@ dnl
dnl Compiler intrumentation
dnl
AM_COND_IF([DEBUG],
[
CXXFLAGS+=" -g"
CXXFLAGS+=" -ggdb"
CXXFLAGS+=" -fvar-tracking"
CXXFLAGS+=" -fvar-tracking-assignments"
], [
dnl Note these flags are unreliable with LTO
CXXFLAGS+=" -g"
CXXFLAGS+=" -ggdb"
])
dnl Creates an ELF section in the output which contains a list of
dnl the command line arguments used for compilation.
CXXFLAGS+=" -frecord-gcc-switches"