summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2011-09-14 15:19:42 +0200
committerStefan Krah <skrah@bytereef.org>2011-09-14 15:19:42 +0200
commit503e5e12c27bf130d388e09fe770d16d9b486821 (patch)
tree6ad3abf2feb64609d386d9cac8d1e56cc97f47f1
parent0d4c34c6ecde228c6b4c87ffce136313a85387ab (diff)
downloadcpython-git-503e5e12c27bf130d388e09fe770d16d9b486821.tar.gz
Backport fix for issue #11149.
-rwxr-xr-xconfigure6
-rw-r--r--configure.in6
2 files changed, 12 insertions, 0 deletions
diff --git a/configure b/configure
index 99a7c718ba..7d6423ad2b 100755
--- 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
diff --git a/configure.in b/configure.in
index acd35d843d..9d7bfa6f8f 100644
--- a/configure.in
+++ b/configure.in
@@ -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