0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-06-08 04:58:58 +02:00

configure: Consolidate applications of -fmax-errors/-ferror-limit.

This commit is contained in:
Jason Volk 2020-11-28 12:23:25 -08:00
parent 04ac7fa627
commit 716f26216d
4 changed files with 13 additions and 24 deletions

View file

@ -638,6 +638,19 @@ dnl
dnl Compiler intrumentation
dnl
AM_COND_IF([DEBUG],
[
AM_COND_IF([GCC],
[
RB_VAR_PREPEND([CXXFLAGS], ["-fmax-errors=2"])
])
AM_COND_IF([CLANG],
[
RB_VAR_PREPEND([CXXFLAGS], ["-ferror-limit=2"])
])
])
AM_COND_IF([DEBUG],
[
RB_VAR_PREPEND([CXXFLAGS], ["-g"])

View file

@ -26,18 +26,6 @@ if CLANG11
AM_CXXFLAGS += -fpch-instantiate-templates
endif
if DEBUG
if GCC
AM_CXXFLAGS += -fmax-errors=2
endif
endif
if DEBUG
if CLANG
AM_CXXFLAGS += -ferror-limit=2
endif
endif
if GCC
if LOWMEM_COMPILE
LOWMEM_FLAGS= --param ggc-min-expand=1

View file

@ -50,12 +50,6 @@ AM_CXXFLAGS += -fwhole-program-vtables
endif
endif
if DEBUG
if GCC
AM_CXXFLAGS += -fmax-errors=2
endif
endif
if MINGW
AM_LDFLAGS += -Wl,--enable-runtime-pseudo-reloc
AM_LDFLAGS += -export-symbols-regex '*'

View file

@ -49,12 +49,6 @@ AM_CXXFLAGS += -fwhole-program-vtables
endif
endif
if DEBUG
if GCC
AM_CXXFLAGS += -fmax-errors=3
endif
endif
if MINGW
AM_LDFLAGS += \
-Wl,--enable-runtime-pseudo-reloc \