mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-03 12:35:58 +00:00
Bug 669403: Always build both VC9 and VC10 exception-wrapping hackery into the Gecko SDK. r=bsmedberg
This commit is contained in:
parent
90221339d6
commit
aa1ba63c54
@ -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)))
|
||||
|
@ -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"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user