[vlc-devel] [PATCH] [RFC] Configure: enable LTO if present
Steve Lhomme
robux4 at gmail.com
Tue Aug 1 08:12:47 CEST 2017
This seems to make compilation much slower. Can we only do it on
non-debug builds ?
Other than that it's probably a good idea.
On Mon, Jul 31, 2017 at 11:41 PM, Jean-Baptiste Kempf <jb at videolan.org> wrote:
> ---
> configure.ac | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/configure.ac b/configure.ac
> index e303715514..fe7e273ea0 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -1049,6 +1049,12 @@ AS_IF([test "${enable_optimizations}" != "no"], [
> RDC_PROG_CXX_FFLAGS([no-math-errno unsafe-math-optimizations no-rounding-math no-signaling-nans cx-limited-range])
> AC_LANG_POP
>
> + dnl Check for LTO
> + RDC_PROG_CC_FFLAGS([lto])
> + AC_LANG_PUSH(C++)
> + RDC_PROG_CXX_FFLAGS([lto])
> + AC_LANG_POP
> +
> AH_BOTTOM([
> #if defined(_MSC_VER) && !defined(__clang__)
> # pragma fenv_access(off)
> --
> 2.13.3
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list