Navigation Menu

Skip to content

Commit

Permalink
clang: use -g for debug option
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Aug 10, 2012
1 parent 718bbd7 commit 1e26bd4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion configure.ac
Expand Up @@ -300,7 +300,10 @@ AC_ARG_WITH(debug,
grn_debug="no")
if test "x$grn_debug" != "xno"; then
grn_debug="yes"
if test "$GCC" = "yes"; then
if test "$CC" = "clang"; then
CFLAGS="$CFLAGS -O0 -g"
CXXFLAGS="$CXXFLAGS -O0 -g"
elif test "$GCC" = "yes"; then
CFLAGS="$CFLAGS -O0 -ggdb3"
CXXFLAGS="$CXXFLAGS -O0 -ggdb3"
fi
Expand Down

0 comments on commit 1e26bd4

Please sign in to comment.