From cdd0e1810d4019d827563b436c1b3b8d1cf5b579 Mon Sep 17 00:00:00 2001 From: Luboš Luňák Date: Fri, 6 Apr 2012 21:29:43 +0200 Subject: enable -fno-enforce-eh-specs only for non-dbgutil builds The code uses exception specifications, so it doesn't make much sense to have them, but disable them using a gcc option. MSVC ignores them completely, so this would leave only clang as the only compiler to enforce them. Either the majority compiler needs to enforce it at least in dbgutil builds (in product builds the option can be seen as a kind of NDEBUG), or alternatively the exception specifications should be removed. --- solenv/inc/wntgcci.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'solenv/inc/wntgcci.mk') diff --git a/solenv/inc/wntgcci.mk b/solenv/inc/wntgcci.mk index bdf46b4d04af..c8e39d1570bb 100644 --- a/solenv/inc/wntgcci.mk +++ b/solenv/inc/wntgcci.mk @@ -51,8 +51,11 @@ CFLAGSCXX=-pipe $(ARCH_FLAGS) # FIXME still does not compile fully CFLAGSCXX+=-std=gnu++0x .ENDIF -CFLAGSEXCEPTIONS=-fexceptions -fno-enforce-eh-specs +CFLAGSEXCEPTIONS=-fexceptions CFLAGS_NO_EXCEPTIONS=-fno-exceptions +.IF "$(dbgutil)"=="" +CFLAGSEXCEPTIONS+= -fno-enforce-eh-specs +.ENDIF PICSWITCH:= CFLAGSOBJGUIST= -- cgit