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.
This commit is contained in:
2018-07-01 21:54:27 +00:00
parent 25e26804a9
commit c53802495c

4
configure vendored
View File

@@ -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