[Python-checkins] cpython (merge 3.2 -> default): Merge fix for issue #11149.

stefan.krah python-checkins at python.org
Wed Sep 14 16:17:35 CEST 2011


http://hg.python.org/cpython/rev/637c67b34a1a
changeset:   72378:637c67b34a1a
parent:      72376:33f7044b5682
parent:      72377:0f1e8c246a7b
user:        Stefan Krah <skrah at bytereef.org>
date:        Wed Sep 14 15:17:12 2011 +0200
summary:
  Merge fix for issue #11149.

files:
  configure    |  6 ++++++
  configure.in |  6 ++++++
  2 files changed, 12 insertions(+), 0 deletions(-)


diff --git a/configure b/configure
--- a/configure
+++ b/configure
@@ -5450,6 +5450,12 @@
         if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
            WRAP="-fwrapv"
         fi
+
+        # Clang also needs -fwrapv
+        if test "$CC" = "clang" ; then
+            WRAP="-fwrapv"
+        fi
+
 	case $ac_cv_prog_cc_g in
 	yes)
 	    if test "$Py_DEBUG" = 'true' ; then
diff --git a/configure.in b/configure.in
--- a/configure.in
+++ b/configure.in
@@ -905,6 +905,12 @@
         if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
            WRAP="-fwrapv"
         fi
+
+        # Clang also needs -fwrapv
+        if test "$CC" = "clang" ; then
+            WRAP="-fwrapv"
+        fi
+
 	case $ac_cv_prog_cc_g in
 	yes)
 	    if test "$Py_DEBUG" = 'true' ; then

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list