0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 02:02:38 +01:00

ircd: Apply devirtualization optimizations for clang.

matrix: Apply devirtualization optimizations for clang.
This commit is contained in:
Jason Volk 2020-05-11 01:58:25 -07:00
parent 226c8702e9
commit 109c30a76c
2 changed files with 14 additions and 0 deletions

View file

@ -36,6 +36,13 @@ if LTO
AM_CXXFLAGS += -flto
endif
if LTO
if CLANG
AM_CXXFLAGS += -fstrict-vtable-pointers
AM_CXXFLAGS += -fwhole-program-vtables
endif
endif
if DEBUG
if GCC
AM_CXXFLAGS += -fmax-errors=2

View file

@ -39,6 +39,13 @@ if LTO
AM_CXXFLAGS += -flto
endif
if LTO
if CLANG
AM_CXXFLAGS += -fstrict-vtable-pointers
AM_CXXFLAGS += -fwhole-program-vtables
endif
endif
if DEBUG
if GCC
AM_CXXFLAGS += -fmax-errors=3