Bug 669403: Always build both VC9 and VC10 exception-wrapping hackery into the Gecko SDK. r=bsmedberg

This commit is contained in:
Chris Jones 2011-08-31 11:05:20 -07:00
parent e1a5b73680
commit 1f77ed2b52
2 changed files with 22 additions and 9 deletions

View File

@ -85,20 +85,31 @@ ifdef GNU_CXX #{
EXPORTS_mozilla += throw_gcc.h
else
ifdef _MSC_VER #{
EXPORTS_mozilla += throw_msvc.h
ifdef MOZ_MSVC_STL_WRAP__Throw #{
EXPORTS_mozilla += msvc_throw_wrapper.h
CPPSRCS += msvc_throw_wrapper.cpp
ifeq ($(MOZ_MSVC_STL_WRAP__RAISE),1) #{
BUILD_MSVC_WRAPPERS = 1
else
ifdef MOZ_MSVC_STL_WRAP__RAISE #{
EXPORTS_mozilla += msvc_raise_wrappers.h
CPPSRCS += msvc_raise_wrappers.cpp
else
$(error Unknown STL wrapper tactic for MSVC)
ifeq ($(MOZ_MSVC_STL_WRAP__Throw),1) #{
BUILD_MSVC_WRAPPERS = 1
endif #}
endif #}
ifdef BUILD_MSVC_WRAPPERS #{
EXPORTS_mozilla += \
msvc_raise_wrappers.h \
msvc_throw_wrapper.h \
throw_msvc.h \
$(NULL)
CPPSRCS += \
msvc_raise_wrappers.cpp \
msvc_throw_wrapper.cpp \
$(NULL)
endif #}
endif #}
endif #}
endif #}
ifneq (,$(filter OS2 WINNT,$(OS_ARCH)))

View File

@ -44,6 +44,8 @@
# define MOZALLOC_EXPORT __declspec(dllexport)
#endif
#include "mozalloc_abort.h"
#define MOZALLOC_DONT_WRAP_RAISE_FUNCTIONS
#include "mozilla/throw_msvc.h"