diff options
author | Norbert Thiebaud <nthieabaud@gmail.com> | 2015-03-28 11:58:22 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2015-03-29 04:21:52 +0000 |
commit | 67d1fd3b627a2223034d8f0cedad6bfb7774095a (patch) | |
tree | c891caad50759245042e9c4a4e4598967ffbedf5 | |
parent | 3c6fd5a59b08cec8705a31d17a60204acf6b7173 (diff) |
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@libreoffice.org>
Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
-rw-r--r-- | configure.ac | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 459a45841a94..1edf101cf96e 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) |