GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — detecting clang in configure.ac · Issue #110034 · python/cpython Closed as not planned Labels buildThe build process and cross-buildThe build process and cross-buildtype-featureA feature request or enhancementA feature request or enhancement DescriptionBug reportBug description:There are several attempts in configure.ac to detect what the compiler we're dealing with actually is: dnl detect compiler name dnl check for xlc before clang, newer xlc's can use clang as frontend. dnl check for GCC last, other compilers set __GNUC__, too. dnl msvc is listed for completeness. AC_CACHE_CHECK([for CC compiler name], [ac_cv_cc_name], [ cat > conftest.c <<EOF #if defined(__INTEL_COMPILER) || defined(__ICC) icc #elif defined(__ibmxl__) || defined(__xlc__) || defined(__xlC__) xlc #elif defined(_MSC_VER) msvc #elif defined(__clang__) clang #elif defined(__GNUC__) gcc #else # error unknown compiler #endif EOF if $CPP $CPPFLAGS conftest.c >conftest.out 2>/dev/null; then ac_cv_cc_name=`grep -v '^#' conftest.out | grep -v '^ *$' | tr -d ' '` else ac_cv_cc_name="unknown" fi rm -f conftest.c conftest.out ]) or this, case $CC in *clang*) cc_is_clang=1 ;; *) if $CC --version 2>&1 | grep -q clang then cc_is_clang=1 else cc_is_clang= fi esac We then have a bunch of tests against if test "$Py_LTO" = 'true' ; then case $CC in *clang*) (most BSDs patch this code to say if test "$ac_cv_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 *gcc*) etc… if test "${OPT-unset}" = "unset" then case $GCC in yes) if test -n "${cc_is_clang}" then How to fix this?autoconf (2.71?) seems to automatically detect GCC, setting a convenient CPython versions tested on:CPython main branch Operating systems tested on:Other Activity
MetadataMetadataAssigneesLabelsbuildThe build process and cross-buildThe build process and cross-buildtype-featureA feature request or enhancementA feature request or enhancement ProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |