Kaydet (Commit) 18f9424e authored tarafından Tor Lillqvist's avatar Tor Lillqvist Kaydeden (comit) Jesús Corrius

Turn on LTO for MSVC when optimising unless told not to

Change-Id: Ifdb04238d02ff504bd517508851e93211d748b7d
Reviewed-on: https://gerrit.libreoffice.org/6652Reviewed-by: 's avatarJesús Corrius <jcorrius@gmail.com>
Tested-by: 's avatarJesús Corrius <jcorrius@gmail.com>
üst 9ab89a75
...@@ -2495,6 +2495,12 @@ COMPATH=`echo $COMPATH | $SED "s@/[[Bb]][[Ii]][[Nn]]\\\$@@"` ...@@ -2495,6 +2495,12 @@ COMPATH=`echo $COMPATH | $SED "s@/[[Bb]][[Ii]][[Nn]]\\\$@@"`
# Set the ENABLE_LTO variable # Set the ENABLE_LTO variable
# =================================================================== # ===================================================================
AC_MSG_CHECKING([whether to use link-time optimization]) AC_MSG_CHECKING([whether to use link-time optimization])
if test $_os = WINNT -a "$WITH_MINGW" != yes -a -z "$enable_lto" -a \
\( -z "$enable_dbgutil" -o "$enable_dbgutil" = no \) -a \
\( -z "$enable_debug" -o "$enable_debug" = no \); then
# Turn on LTO for MSVC when optimising unless told not to
enable_lto=yes
fi
if test -n "$enable_lto" -a "$enable_lto" != "no"; then if test -n "$enable_lto" -a "$enable_lto" != "no"; then
ENABLE_LTO="TRUE" ENABLE_LTO="TRUE"
AC_MSG_RESULT([yes]) AC_MSG_RESULT([yes])
......
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