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

Fix -flto flag compat erosion w/ gcc.

This commit is contained in:
Jason Volk 2022-07-20 10:44:54 -07:00
parent 041c4822bc
commit 065343069a
2 changed files with 8 additions and 2 deletions

View file

@ -43,11 +43,14 @@ endif
endif
if LTO
AM_CXXFLAGS += -flto=thin
if GCC
AM_CXXFLAGS += -flto=auto
endif
endif
if LTO
if CLANG
AM_CXXFLAGS += -flto=thin
AM_CXXFLAGS += -fstrict-vtable-pointers
AM_CXXFLAGS += -fwhole-program-vtables
#AM_LDFLAGS += -Wl,-plugin-opt,-pass-remarks='.*'

View file

@ -34,11 +34,14 @@ AM_CXXFLAGS += -ftls-model=local-dynamic
endif
if LTO
AM_CXXFLAGS += -flto=thin
if GCC
AM_CXXFLAGS += -flto=auto
endif
endif
if LTO
if CLANG
AM_CXXFLAGS += -flto=thin
AM_CXXFLAGS += -fstrict-vtable-pointers
AM_CXXFLAGS += -fwhole-program-vtables
endif