mirror of
https://github.com/dashpay/dash.git
synced 2024-12-25 12:02:48 +01:00
Merge #13445: build: Reset default -g -O2 flags when enable debug
9882d1f044133832b3c0809676d5f26a861b9f44 Reset default -g -O2 flags when enable debug (Chun Kuan Lee) Pull request description: The default CXXFLAGS is -g -O2, this should not appear when enable debug. fixes #13432 Tree-SHA512: 79447f3e1fab9e6cd12f5ca49b3d42187e856e0c159ed01140ea93d6ef1fbb1af3d65b338308566330491052c0177d12abe26796513502ddde31692665a0dbb4
This commit is contained in:
parent
e47f2e9172
commit
2615ebca43
@ -281,6 +281,10 @@ AC_LANG_PUSH([C++])
|
|||||||
AX_CHECK_COMPILE_FLAG([-Werror],[CXXFLAG_WERROR="-Werror"],[CXXFLAG_WERROR=""])
|
AX_CHECK_COMPILE_FLAG([-Werror],[CXXFLAG_WERROR="-Werror"],[CXXFLAG_WERROR=""])
|
||||||
|
|
||||||
if test "x$enable_debug" = xyes; then
|
if test "x$enable_debug" = xyes; then
|
||||||
|
# Clear default -g -O2 flags
|
||||||
|
if test "x$CXXFLAGS_overridden" = xno; then
|
||||||
|
CXXFLAGS=""
|
||||||
|
fi
|
||||||
# Prefer -Og, fall back to -O0 if that is unavailable.
|
# Prefer -Og, fall back to -O0 if that is unavailable.
|
||||||
AX_CHECK_COMPILE_FLAG(
|
AX_CHECK_COMPILE_FLAG(
|
||||||
[-Og],
|
[-Og],
|
||||||
|
Loading…
Reference in New Issue
Block a user