summaryrefslogtreecommitdiffstats
path: root/configure
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
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')
-rwxr-xr-xconfigure6
1 files changed, 6 insertions, 0 deletions
diff --git a/configure b/configure
index 9d85e35..de53c09 100755
--- 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