mirror of
https://github.com/matrix-construct/construct
synced 2024-09-27 19:28:52 +02:00
configure: Move debug switches to separate condition.
This commit is contained in:
parent
ed11153d27
commit
0c01304a94
1 changed files with 12 additions and 8 deletions
20
configure.ac
20
configure.ac
|
@ -485,16 +485,8 @@ AM_COND_IF([OPTIMIZE],
|
||||||
CXXFLAGS+=" -fbranch-target-load-optimize"
|
CXXFLAGS+=" -fbranch-target-load-optimize"
|
||||||
CXXFLAGS+=" -frerun-loop-opt"
|
CXXFLAGS+=" -frerun-loop-opt"
|
||||||
CXXFLAGS+=" -fdevirtualize-at-ltrans"
|
CXXFLAGS+=" -fdevirtualize-at-ltrans"
|
||||||
|
|
||||||
dnl Note these flags are unreliable with LTO
|
|
||||||
CXXFLAGS+=" -g"
|
|
||||||
CXXFLAGS+=" -ggdb"
|
|
||||||
], [
|
], [
|
||||||
optimize="no"
|
optimize="no"
|
||||||
CXXFLAGS+=" -g"
|
|
||||||
CXXFLAGS+=" -ggdb"
|
|
||||||
CXXFLAGS+=" -fvar-tracking"
|
|
||||||
CXXFLAGS+=" -fvar-tracking-assignments"
|
|
||||||
CXXFLAGS+=" -falign-functions"
|
CXXFLAGS+=" -falign-functions"
|
||||||
])
|
])
|
||||||
|
|
||||||
|
@ -502,6 +494,18 @@ dnl
|
||||||
dnl Compiler intrumentation
|
dnl Compiler intrumentation
|
||||||
dnl
|
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 Creates an ELF section in the output which contains a list of
|
||||||
dnl the command line arguments used for compilation.
|
dnl the command line arguments used for compilation.
|
||||||
CXXFLAGS+=" -frecord-gcc-switches"
|
CXXFLAGS+=" -frecord-gcc-switches"
|
||||||
|
|
Loading…
Reference in a new issue