diff options
-rwxr-xr-x | configure | 6 | ||||
-rw-r--r-- | configure.in | 6 |
2 files changed, 12 insertions, 0 deletions
@@ -5411,6 +5411,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 diff --git a/configure.in b/configure.in index acd35d8..9d7bfa6 100644 --- a/configure.in +++ b/configure.in @@ -932,6 +932,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 |