[Python-checkins] cpython (3.2): Issue #11149: Also enable -fwrapv if $CC is a full path
stefan.krah
python-checkins at python.org
Thu Dec 8 22:31:15 CET 2011
http://hg.python.org/cpython/rev/7efad6256e58
changeset: 73890:7efad6256e58
branch: 3.2
parent: 73886:c143e66e5efe
user: Stefan Krah <skrah at bytereef.org>
date: Thu Dec 08 22:20:31 2011 +0100
summary:
Issue #11149: Also enable -fwrapv if $CC is a full path
or has a trailing version number.
files:
configure | 7 ++++---
configure.in | 7 ++++---
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/configure b/configure
--- a/configure
+++ b/configure
@@ -5498,9 +5498,10 @@
fi
# Clang also needs -fwrapv
- if test "$CC" = "clang" ; then
- WRAP="-fwrapv"
- fi
+ case $CC in
+ *clang*) WRAP="-fwrapv"
+ ;;
+ esac
case $ac_cv_prog_cc_g in
yes)
diff --git a/configure.in b/configure.in
--- a/configure.in
+++ b/configure.in
@@ -928,9 +928,10 @@
fi
# Clang also needs -fwrapv
- if test "$CC" = "clang" ; then
- WRAP="-fwrapv"
- fi
+ case $CC in
+ *clang*) WRAP="-fwrapv"
+ ;;
+ esac
case $ac_cv_prog_cc_g in
yes)
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list