forked from OSchip/llvm-project
Move the AC_PROG_CC checks earlier in the configure file. The lateness
of the original check meant that configure was caching the default CC check and using that instead of the result of AC_PROG_CC in both configure checks and during compilation. This wasn't affecting C++ so it was hard to notice. Regenerate configure. llvm-svn: 139937
This commit is contained in:
parent
2266c007e3
commit
5883971d00
|
@ -58,6 +58,12 @@ if test ${srcdir} != "." ; then
|
|||
fi
|
||||
fi
|
||||
|
||||
dnl We need to check for the compiler up here to avoid anything else
|
||||
dnl starting with a different one.
|
||||
AC_PROG_CC(clang llvm-gcc gcc)
|
||||
AC_PROG_CXX(clang++ llvm-g++ g++)
|
||||
AC_PROG_CPP
|
||||
|
||||
dnl Configure all of the projects present in our source tree. While we could
|
||||
dnl just AC_CONFIG_SUBDIRS on the set of directories in projects that have a
|
||||
dnl configure script, that usage of the AC_CONFIG_SUBDIRS macro is deprecated.
|
||||
|
@ -965,11 +971,6 @@ dnl=== SECTION 4: Check for programs we need and that they are the right version
|
|||
dnl===
|
||||
dnl===-----------------------------------------------------------------------===
|
||||
|
||||
dnl Check for compilation tools
|
||||
AC_PROG_CPP
|
||||
AC_PROG_CC(clang llvm-gcc gcc)
|
||||
AC_PROG_CXX(clang++ llvm-g++ g++)
|
||||
|
||||
AC_PROG_NM
|
||||
AC_SUBST(NM)
|
||||
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue