Bug 601974 - [clang]: error: exception specification in declaration does not match previous declaration MOZALLOC_THROW_BAD_ALLOC in /toolkit/xre; r,a=bsmedberg
authorRafael Ávila de Espíndola <respindola@mozilla.com>
Fri, 21 Jan 2011 14:13:04 -0500
changeset 61099 49b68a67b57537980d8203dce696392776bbf914
parent 61098 b17f28507ab402e155819cd7921b37d454f2680d
child 61100 f12f55c744f4890f9dd89177288ef9cb6349a1d3
push idunknown
push userunknown
push dateunknown
reviewersbsmedberg
bugs601974
milestone2.0b10pre
Bug 601974 - [clang]: error: exception specification in declaration does not match previous declaration MOZALLOC_THROW_BAD_ALLOC in /toolkit/xre; r,a=bsmedberg
toolkit/xre/Makefile.in
--- a/toolkit/xre/Makefile.in
+++ b/toolkit/xre/Makefile.in
@@ -121,17 +121,17 @@ endif
 endif
 endif
 
 ifeq ($(MOZ_WIDGET_TOOLKIT),cocoa)
 CMMSRCS += MacLaunchHelper.mm
 CMMSRCS += MacApplicationDelegate.mm
 CMMSRCS += MacAutoreleasePool.mm
 CPPSRCS += nsCommandLineServiceMac.cpp
-OS_CXXFLAGS += -fexceptions
+ENABLE_CXX_EXCEPTIONS = 1
 endif
 
 ifdef MOZ_X11
 CPPSRCS += nsX11ErrorHandler.cpp
 endif
 
 ifeq ($(OS_TARGET),Android)
 CPPSRCS += nsAndroidStartup.cpp