]> granicus.if.org Git - python/commitdiff
Backport fix for issue #11149.
authorStefan Krah <skrah@bytereef.org>
Wed, 14 Sep 2011 13:19:42 +0000 (15:19 +0200)
committerStefan Krah <skrah@bytereef.org>
Wed, 14 Sep 2011 13:19:42 +0000 (15:19 +0200)
configure
configure.in

index 99a7c718bafebdffc9619797ec08f6f295ae32ea..7d6423ad2b8372232c53bc67ba7a6641a1b565f2 100755 (executable)
--- a/configure
+++ b/configure
@@ -5411,6 +5411,12 @@ then
         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
index acd35d843ddcc08d7402c6b0187b66aa3d15f0e8..9d7bfa6f8fa3b4cca53b6f74ab9ec9c76bb7b2ba 100644 (file)
@@ -932,6 +932,12 @@ then
         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