configure.ac | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-)
New commits: commit 67d1fd3b627a2223034d8f0cedad6bfb7774095a Author: Norbert Thiebaud <nthieab...@gmail.com> Date: Sat Mar 28 11:58:22 2015 -0500 make --enable-pch the default on windows Using precompiled header have significant performance benefit on windows, and seems to be quite stable let's seclect it by default. Change-Id: Ia3d0ea53007e3550e819acdd7943bed945887bd0 Reviewed-on: https://gerrit.libreoffice.org/15045 Tested-by: Jenkins <c...@libreoffice.org> Tested-by: Norbert Thiebaud <nthieb...@gmail.com> Reviewed-by: Norbert Thiebaud <nthieb...@gmail.com> diff --git a/configure.ac b/configure.ac index 459a458..1edf101 100644 --- a/configure.ac +++ b/configure.ac @@ -4777,20 +4777,23 @@ AC_SUBST(HYPH_SYSTEM_DIR) AC_SUBST(THES_SYSTEM_DIR) dnl =================================================================== +dnl enable pch by default on windows +dnl enable it explicitely otherwise AC_MSG_CHECKING([whether to enable pch feature]) -if test -n "$enable_pch" && test "$enable_pch" != "no"; then +ENABLE_PCH="" +if test "$enable_pch" != "no"; then if test "$_os" = "WINNT" -a "$WITH_MINGW" != "yes"; then ENABLE_PCH="TRUE" AC_MSG_RESULT([yes]) - elif test "$GCC" = "yes"; then + elif test -n "$enable_pch" && test "$GCC" = "yes"; then ENABLE_PCH="TRUE" AC_MSG_RESULT([yes]) - else - ENABLE_PCH="" + elif test -n "$enable_pch"; then AC_MSG_ERROR([Precompiled header not yet supported for your platform/compiler]) + else + AC_MSG_RESULT([no]) fi else - ENABLE_PCH="" AC_MSG_RESULT([no]) fi AC_SUBST(ENABLE_PCH) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits