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:
parent
226c8702e9
commit
109c30a76c
2 changed files with 14 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue