add pch support to gcc

Change-Id: I58c11477c1ce48185528db3a8013b5dccf3947c6
Reviewed-on: https://gerrit.libreoffice.org/2653
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
This commit is contained in:
Peter Foley
2013-03-10 17:50:29 -04:00
committed by Fridrich Strba
parent 4154006248
commit bda2003485
4 changed files with 17 additions and 11 deletions

View File

@@ -4394,9 +4394,7 @@ if test -n "$enable_pch" && test "$enable_pch" != "no"; then
if test "$_os" = "WINNT" -a "$WITH_MINGW" != "yes"; then
ENABLE_PCH="TRUE"
AC_MSG_RESULT([yes])
# GCC PCH support is reportedly a hack that's not very reliable,
# so support only Clang.
elif test "$GCC" = "yes" -a "$COM_GCC_IS_CLANG" = "TRUE"; then
elif test "$GCC" = "yes"; then
ENABLE_PCH="TRUE"
AC_MSG_RESULT([yes])
else