mirror of
https://github.com/matrix-construct/construct
synced 2024-12-26 07:23:53 +01:00
configure: Tweak debug/optimization cxxflags related.
This commit is contained in:
parent
a461e8a5aa
commit
f5bc9721d8
1 changed files with 4 additions and 5 deletions
|
@ -397,9 +397,11 @@ dnl
|
|||
dnl Optimization
|
||||
dnl
|
||||
|
||||
CXXFLAGS+=" -O$optimize_level"
|
||||
|
||||
AM_COND_IF([OPTIMIZE],
|
||||
[
|
||||
CXXFLAGS+=" -O$optimize_level"
|
||||
CXXFLAGS+=" -march=native"
|
||||
CXXFLAGS+=" -fweb"
|
||||
CXXFLAGS+=" -fdata-sections"
|
||||
CXXFLAGS+=" -ffunction-sections"
|
||||
|
@ -422,13 +424,10 @@ AM_COND_IF([OPTIMIZE],
|
|||
dnl remember to axe this when lto is enabled
|
||||
CXXFLAGS+=" -g"
|
||||
CXXFLAGS+=" -ggdb"
|
||||
CXXFLAGS+=" -ggnu-pubnames"
|
||||
], [
|
||||
CXXFLAGS+=" -march=native"
|
||||
CXXFLAGS+=" -O$optimize_level"
|
||||
CXXFLAGS+=" -g"
|
||||
CXXFLAGS+=" -ggdb"
|
||||
CXXFLAGS+=" -ggnu-pubnames"
|
||||
CXXFLAGS+=" -fvar-tracking"
|
||||
])
|
||||
|
||||
dnl
|
||||
|
|
Loading…
Reference in a new issue