[Libreoffice-commits] core.git: configure.ac

Norbert Thiebaud nthieabaud at gmail.com
Sat Mar 28 21:22:22 PDT 2015


 configure.ac |   13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

New commits:
commit 67d1fd3b627a2223034d8f0cedad6bfb7774095a
Author: Norbert Thiebaud <nthieabaud at 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 <ci at libreoffice.org>
    Tested-by: Norbert Thiebaud <nthiebaud at gmail.com>
    Reviewed-by: Norbert Thiebaud <nthiebaud at 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)


More information about the Libreoffice-commits mailing list