Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 962055d

Browse files
author
Stefan Krah
committed
Issue #11149: recent versions of clang require the -fwrapv flag.
1 parent d71bbf9 commit 962055d

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

configure

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5504,6 +5504,12 @@ then
55045504
if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
55055505
WRAP="-fwrapv"
55065506
fi
5507+
5508+
# Clang also needs -fwrapv
5509+
if test "$CC" = "clang" ; then
5510+
WRAP="-fwrapv"
5511+
fi
5512+
55075513
case $ac_cv_prog_cc_g in
55085514
yes)
55095515
if test "$Py_DEBUG" = 'true' ; then

configure.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -926,6 +926,12 @@ then
926926
if "$CC" -v --help 2>/dev/null |grep -- -fwrapv > /dev/null; then
927927
WRAP="-fwrapv"
928928
fi
929+
930+
# Clang also needs -fwrapv
931+
if test "$CC" = "clang" ; then
932+
WRAP="-fwrapv"
933+
fi
934+
929935
case $ac_cv_prog_cc_g in
930936
yes)
931937
if test "$Py_DEBUG" = 'true' ; then

0 commit comments

Comments
 (0)