]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #11149: recent versions of clang require the -fwrapv flag.
authorStefan Krah <skrah@bytereef.org>
Wed, 14 Sep 2011 13:14:08 +0000 (15:14 +0200)
committerStefan Krah <skrah@bytereef.org>
Wed, 14 Sep 2011 13:14:08 +0000 (15:14 +0200)
configure
configure.in

index 9d85e359b1da0245492ee391232deb38eeff32ac..de53c09b7e353f66d5b295f14a3cf4e227b03e68 100755 (executable)
--- a/configure
+++ b/configure
@@ -5504,6 +5504,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 3e60d8e01654421475f0d928c29e38965b31d681..1bbb559aed3204681fc4fc95291b9924630d5b7b 100644 (file)
@@ -926,6 +926,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