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

Skip to content

Commit af04ff2

Browse files
author
Stefan Krah
committed
Issue #11149: Also enable -fwrapv if $CC is a full path
or has a trailing version number.
1 parent 0cd4790 commit af04ff2

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

configure

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5498,9 +5498,10 @@ then
54985498
fi
54995499

55005500
# Clang also needs -fwrapv
5501-
if test "$CC" = "clang" ; then
5502-
WRAP="-fwrapv"
5503-
fi
5501+
case $CC in
5502+
*clang*) WRAP="-fwrapv"
5503+
;;
5504+
esac
55045505

55055506
case $ac_cv_prog_cc_g in
55065507
yes)

configure.in

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -928,9 +928,10 @@ then
928928
fi
929929

930930
# Clang also needs -fwrapv
931-
if test "$CC" = "clang" ; then
932-
WRAP="-fwrapv"
933-
fi
931+
case $CC in
932+
*clang*) WRAP="-fwrapv"
933+
;;
934+
esac
934935

935936
case $ac_cv_prog_cc_g in
936937
yes)

0 commit comments

Comments
 (0)