summaryrefslogtreecommitdiffstats
path: root/configure.in
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2011-09-14 13:14:08 (GMT)
committerStefan Krah <skrah@bytereef.org>2011-09-14 13:14:08 (GMT)
commit962055d3c658e9b2e75ba4c3682c3639eea9aed8 (patch)
tree633da41071778dff2562c08e05a3ec86c9a7c7df /configure.in
parentd71bbf9fd5562ed50ebce993e1137ae7de0589f7 (diff)
downloadcpython-962055d3c658e9b2e75ba4c3682c3639eea9aed8.zip
cpython-962055d3c658e9b2e75ba4c3682c3639eea9aed8.tar.gz
cpython-962055d3c658e9b2e75ba4c3682c3639eea9aed8.tar.bz2
Issue #11149: recent versions of clang require the -fwrapv flag.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure.in b/configure.in
index 3e60d8e..1bbb559 100644
--- a/configure.in
+++ b/configure.in
@@ -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