[Python-checkins] cpython (3.2): Issue #11149: recent versions of clang require the -fwrapv flag.
stefan.krah
python-checkins at python.org
Wed Sep 14 16:17:34 CEST 2011
http://hg.python.org/cpython/rev/0f1e8c246a7b
changeset: 72377:0f1e8c246a7b
branch: 3.2
parent: 72373:bc5b96c92770
user: Stefan Krah <skrah at bytereef.org>
date: Wed Sep 14 15:14:08 2011 +0200
summary:
Issue #11149: recent versions of clang require the -fwrapv flag.
files:
configure | 6 ++++++
configure.in | 6 ++++++
2 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/configure b/configure
--- a/configure
+++ b/configure
@@ -5504,6 +5504,12 @@
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
--- a/configure.in
+++ b/configure.in
@@ -926,6 +926,12 @@
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
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list