0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-27 07:54:05 +01:00

configure: Fix optimization flags not supported by clang.

This commit is contained in:
Jason Volk 2020-02-01 19:04:40 -08:00
parent b8c26b37b6
commit 81335d5aeb

View file

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