hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lei_ch...@apache.org
Subject incubator-hawq git commit: HAWQ-647. fix compilation flag bug in debug mode
Date Sun, 10 Apr 2016 02:17:57 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master a55d40c73 -> 99d397af3


HAWQ-647. fix compilation flag bug in debug mode


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/99d397af
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/99d397af
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/99d397af

Branch: refs/heads/master
Commit: 99d397af380d71475c4036082d8f4a9543e15225
Parents: a55d40c
Author: xunzhang <xunzhangthu@gmail.com>
Authored: Sat Apr 9 20:48:10 2016 +0800
Committer: Lei Chang <chang.lei.cn@gmail.com>
Committed: Sun Apr 10 10:17:11 2016 +0800

----------------------------------------------------------------------
 configure    | 6 +++++-
 configure.in | 5 ++++-
 2 files changed, 9 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/99d397af/configure
----------------------------------------------------------------------
diff --git a/configure b/configure
index 39cf6f5..76842d4 100755
--- a/configure
+++ b/configure
@@ -4407,7 +4407,11 @@ elif test "${CFLAGS+set}" = set; then
 elif test "$enable_coverage" = yes; then
   : # no optimization by default
 elif test "$GCC" = yes; then
-  CFLAGS="-O3"
+  if test "$enable_debug" == yes; then
+    CFLAGS="-O0"
+  else
+    CFLAGS="-O3"
+  fi
 else
   # if the user selected debug mode, don't use -O
   if test "$enable_debug" != yes; then

http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/99d397af/configure.in
----------------------------------------------------------------------
diff --git a/configure.in b/configure.in
index 13260ef..a5b322b 100644
--- a/configure.in
+++ b/configure.in
@@ -306,7 +306,10 @@ elif test "${CFLAGS+set}" = set; then
 elif test "$enable_coverage" = yes; then
   : # no optimization by default
 elif test "$GCC" = yes; then
-  CFLAGS="-O3"
+  if test "$enable_debug" == yes; then
+    CFLAGS="-O0"
+  else
+    CFLAGS="-O3"
 else
   # if the user selected debug mode, don't use -O
   if test "$enable_debug" != yes; then


Mime
View raw message