From a6b3b3f80b845c5d2d6e766a539acfd5e19f6d10 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Thu, 29 Oct 2020 02:01:34 -0700 Subject: [PATCH] include/ircd/Makefile: Set clang equiv of -fmax-errors. --- include/ircd/Makefile.am | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/ircd/Makefile.am b/include/ircd/Makefile.am index b7509020b..ceaf3f320 100644 --- a/include/ircd/Makefile.am +++ b/include/ircd/Makefile.am @@ -32,6 +32,12 @@ 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