From 81335d5aeb6ed809fcdc7e90105486a70fe95588 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Sat, 1 Feb 2020 19:04:40 -0800 Subject: [PATCH] configure: Fix optimization flags not supported by clang. --- configure.ac | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index 780a04391..834753cbe 100644 --- a/configure.ac +++ b/configure.ac @@ -547,15 +547,16 @@ dnl CXXFLAGS+=" -fbtr-bb-exclusive" dnl in non-optimized mode as well as optimized mode so they are as similar as dnl possible without impacting debuggability. CXXFLAGS+=" -falign-functions" - CXXFLAGS+=" -falign-labels" - CXXFLAGS+=" -falign-loops" - CXXFLAGS+=" -falign-jumps" dnl CXXFLAGS+=" -fdata-sections" dnl CXXFLAGS+=" -ffunction-sections" CXXFLAGS+=" -ftree-vectorize" AM_COND_IF([GCC], [ + CXXFLAGS+=" -falign-labels" + CXXFLAGS+=" -falign-loops" + CXXFLAGS+=" -falign-jumps" + CXXFLAGS+=" -ftree-vrp" CXXFLAGS+=" -ftree-dce" CXXFLAGS+=" -ftree-dse"