Issue #11149: Also enable -fwrapv if $CC is a full path
or has a trailing version number.
This commit is contained in:
parent
0cd479074d
commit
af04ff2b97
|
@ -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)
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue