From c53802495c4df3d5897a537fcd562bcdf0cc21d8 Mon Sep 17 00:00:00 2001 From: Max Regan Date: Sun, 1 Jul 2018 21:54:27 +0000 Subject: [PATCH] build: do not use LTO for --perf LTO results in a significant performance boost, but hurts debugability of the results from perf. For now, disable it. --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 443e9ef..e0d2ccc 100755 --- a/configure +++ b/configure @@ -65,9 +65,9 @@ if [[ "$coverage" == "yes" ]]; then ldflags_extra="$ldflags_extra -lgcov --coverage" fi -release_cflags="-O3 -flto" +release_cflags="-O3" if [[ "$release" == "yes" ]]; then - ccflags_extra="$ccflags_extra $release_cflags" + ccflags_extra="$ccflags_extra $release_cflags -flto" fi if [[ "$perf" == "yes" ]]; then