Skip to content

Fix check CC compiler variable in configure #6756

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -6471,7 +6471,7 @@ $as_echo "no" >&6; }
fi

if test "$Py_LTO" = 'true' ; then
case $CC in
case ${CC##*/} in
*clang*)
case $ac_sys_system in
Darwin*)
Expand Down Expand Up @@ -6674,7 +6674,7 @@ $as_echo "$as_me: llvm-profdata found via xcrun: ${LLVM_PROFDATA}" >&6;}
fi
fi
LLVM_PROF_ERR=no
case $CC in
case ${CC##*/} in
*clang*)
# Any changes made here should be reflected in the GCC+Darwin case below
PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
Expand Down Expand Up @@ -6751,7 +6751,7 @@ then
WRAP="-fwrapv"
fi

case $CC in
case ${CC##*/} in
*clang*)
cc_is_clang=1
;;
Expand Down Expand Up @@ -6931,7 +6931,7 @@ $as_echo "$ac_cv_no_strict_aliasing" >&6; }

# ICC doesn't recognize the option, but only emits a warning
## XXX does it emit an unused result warning and can it be disabled?
case "$CC" in
case "${CC##*/}" in
*icc*)
ac_cv_disable_unused_result_warning=no
;;
Expand Down Expand Up @@ -7363,7 +7363,7 @@ $as_echo "$MACOSX_DEPLOYMENT_TARGET" >&6; }
esac

# ICC needs -fp-model strict or floats behave badly
case "$CC" in
case "${CC##*/}" in
*icc*)
CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"
;;
Expand Down Expand Up @@ -9362,7 +9362,7 @@ then
then
LINKFORSHARED="-Wl,--export-dynamic"
fi;;
SunOS/5*) case $CC in
SunOS/5*) case ${CC##*/} in
*gcc*)
if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
then
Expand Down Expand Up @@ -16479,7 +16479,7 @@ if test "$have_gcc_asm_for_x87" = yes; then
# Some versions of gcc miscompile inline asm:
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491
# http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html
case $CC in
case ${CC##*/} in
*gcc*)
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc ipa-pure-const bug" >&5
$as_echo_n "checking for gcc ipa-pure-const bug... " >&6; }
Expand Down
14 changes: 7 additions & 7 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1316,7 +1316,7 @@ else
fi],
[AC_MSG_RESULT(no)])
if test "$Py_LTO" = 'true' ; then
case $CC in
case ${CC##*/} in
*clang*)
case $ac_sys_system in
Darwin*)
Expand Down Expand Up @@ -1389,7 +1389,7 @@ then
fi
fi
LLVM_PROF_ERR=no
case $CC in
case ${CC##*/} in
*clang*)
# Any changes made here should be reflected in the GCC+Darwin case below
PGO_PROF_GEN_FLAG="-fprofile-instr-generate"
Expand Down Expand Up @@ -1466,7 +1466,7 @@ then
WRAP="-fwrapv"
fi

case $CC in
case ${CC##*/} in
*clang*)
cc_is_clang=1
;;
Expand Down Expand Up @@ -1590,7 +1590,7 @@ yes)

# ICC doesn't recognize the option, but only emits a warning
## XXX does it emit an unused result warning and can it be disabled?
case "$CC" in
case "${CC##*/}" in
*icc*)
ac_cv_disable_unused_result_warning=no
;;
Expand Down Expand Up @@ -1892,7 +1892,7 @@ yes)
esac

# ICC needs -fp-model strict or floats behave badly
case "$CC" in
case "${CC##*/}" in
*icc*)
CFLAGS_NODIST="$CFLAGS_NODIST -fp-model strict"
;;
Expand Down Expand Up @@ -2654,7 +2654,7 @@ then
then
LINKFORSHARED="-Wl,--export-dynamic"
fi;;
SunOS/5*) case $CC in
SunOS/5*) case ${CC##*/} in
*gcc*)
if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null
then
Expand Down Expand Up @@ -5332,7 +5332,7 @@ if test "$have_gcc_asm_for_x87" = yes; then
# Some versions of gcc miscompile inline asm:
# http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46491
# http://gcc.gnu.org/ml/gcc/2010-11/msg00366.html
case $CC in
case ${CC##*/} in
*gcc*)
AC_MSG_CHECKING(for gcc ipa-pure-const bug)
saved_cflags="$CFLAGS"
Expand Down