Kaydet (Commit) 4b176508 authored tarafından Peter Foley's avatar Peter Foley Kaydeden (comit) David Tardon

Fix ccache with MSVC

Change-Id: I0721a8d0aa584051d1e16b327c3cd1352eedf253
üst a97fdbda
...@@ -3289,26 +3289,23 @@ AC_SUBST(DBGHELP_DLL) ...@@ -3289,26 +3289,23 @@ AC_SUBST(DBGHELP_DLL)
# #
# prefix C with ccache if needed # prefix C with ccache if needed
# #
if test "$_os" != "WINNT" -o "$WITH_MINGW" = "yes"; then if test "$CCACHE" != ""; then
if test "$CCACHE" != ""; then AC_MSG_CHECKING([whether $CC is already ccached])
AC_MSG_CHECKING([whether $CC is already ccached])
AC_LANG_PUSH([C])
AC_LANG_PUSH([C]) save_CFLAGS=$CFLAGS
save_CFLAGS=$CFLAGS CFLAGS="$CFLAGS --ccache-skip -O2"
CFLAGS="$CFLAGS --ccache-skip -O2" dnl an empty program will do, we're checking the compiler flags
dnl an empty program will do, we're checking the compiler flags AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])],
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([],[])], [use_ccache=yes], [use_ccache=no])
[use_ccache=yes], [use_ccache=no]) if test $use_ccache = yes; then
if test $use_ccache = yes; then AC_MSG_RESULT([yes])
AC_MSG_RESULT([yes]) else
else CC="$CCACHE $CC"
CC="$CCACHE $CC" AC_MSG_RESULT([no])
AC_MSG_RESULT([no]) fi
fi CFLAGS=$save_CFLAGS
CFLAGS=$save_CFLAGS AC_LANG_POP([C])
AC_LANG_POP([C])
fi
fi fi
# #
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment