diff options
author | Stefan Krah <skrah@bytereef.org> | 2011-12-08 21:20:31 (GMT) |
---|---|---|
committer | Stefan Krah <skrah@bytereef.org> | 2011-12-08 21:20:31 (GMT) |
commit | af04ff2b974415f3f93d70f974a40b0445cf4aca (patch) | |
tree | e513eb4d809c61bf189a81f1294b7ffd4ee51fd7 | |
parent | 0cd479074d3e607e81661e73440eff87264cf737 (diff) | |
download | cpython-af04ff2b974415f3f93d70f974a40b0445cf4aca.zip cpython-af04ff2b974415f3f93d70f974a40b0445cf4aca.tar.gz cpython-af04ff2b974415f3f93d70f974a40b0445cf4aca.tar.bz2 |
Issue #11149: Also enable -fwrapv if $CC is a full path
or has a trailing version number.
-rwxr-xr-x | configure | 7 | ||||
-rw-r--r-- | configure.in | 7 |
2 files changed, 8 insertions, 6 deletions
@@ -5498,9 +5498,10 @@ then 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 index 81de0d4..0efe7d1 100644 --- a/configure.in +++ b/configure.in @@ -928,9 +928,10 @@ then 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) |