[Python-checkins] cpython (2.7): Backport fix for issue #11149.

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


http://hg.python.org/cpython/rev/feed6d2097b1
changeset:   72379:feed6d2097b1
branch:      2.7
parent:      72372:e8d8eb9e05fd
user:        Stefan Krah <skrah at bytereef.org>
date:        Wed Sep 14 15:19:42 2011 +0200
summary:
  Backport 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
@@ -5411,6 +5411,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
@@ -932,6 +932,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