summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-09-14 15:46:17 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-09-14 15:46:17 (GMT)
commit02ba6c291615616cc1dfcacd575eb52fafc2fb43 (patch)
tree10ea7a3b4a315d1e60d2aedf258c5450b9bbbde0
parent9428d53eb4936df3060f4002d9cc005e303adbbc (diff)
parent66611c554d074ccff4c7b152c305e09bbd8e636a (diff)
downloadcpython-02ba6c291615616cc1dfcacd575eb52fafc2fb43.zip
cpython-02ba6c291615616cc1dfcacd575eb52fafc2fb43.tar.gz
cpython-02ba6c291615616cc1dfcacd575eb52fafc2fb43.tar.bz2
merge heads
-rwxr-xr-xconfigure6
-rw-r--r--configure.in6
2 files changed, 12 insertions, 0 deletions
diff --git a/configure b/configure
index 82f8539..67ae35c 100755
--- a/configure
+++ b/configure
@@ -5450,6 +5450,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 5a16bb0..315a832 100644
--- a/configure.in
+++ b/configure.in
@@ -905,6 +905,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