Skip to content

Commit

Permalink
Define DEBUG in CPPFLAGS rather than AC_DEFINE
Browse files Browse the repository at this point in the history
  • Loading branch information
revl committed May 1, 2020
1 parent 9eeb8ce commit 5a797ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apptmpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ AM_CONDITIONAL(DEBUG, [test "$enable_debug" = yes])
AS_IF([test "$enable_debug" != yes],
[CXXFLAGS="$CXXFLAGS -O3"],
[AC_DEFINE([DEBUG], 1, [Define to 1 to enable various runtime checks.])
[CPPFLAGS="$CPPFLAGS -D{{VarNameUC .name}}_DEBUG"
AS_IF([test "$GXX" = yes],
[CXXFLAGS="$CXXFLAGS -ggdb"],
[test "$DIGITALCXX" = yes],
Expand Down
2 changes: 1 addition & 1 deletion libtmpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ AM_CONDITIONAL(DEBUG, [test "$enable_debug" = yes])
AS_IF([test "$enable_debug" != yes],
[CXXFLAGS="$CXXFLAGS -O3"],
[AC_DEFINE([DEBUG], 1, [Define to 1 to enable various runtime checks.])
[CPPFLAGS="$CPPFLAGS -D{{VarNameUC .name}}_DEBUG"
AS_IF([test "$GXX" = yes],
[CXXFLAGS="$CXXFLAGS -ggdb"],
[test "$DIGITALCXX" = yes],
Expand Down

0 comments on commit 5a797ed

Please sign in to comment.