From 279b9e5185c5daaefc75343aaca06e4efd8a4951 Mon Sep 17 00:00:00 2001 From: dwight Date: Fri, 30 Dec 2011 18:40:38 -0500 Subject: boost asserts enable on _DEBUG and off on release --- src/mongo/pch.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mongo/pch.h') diff --git a/src/mongo/pch.h b/src/mongo/pch.h index ecb98e17146..4a3000ed1eb 100644 --- a/src/mongo/pch.h +++ b/src/mongo/pch.h @@ -22,6 +22,11 @@ #define MONGO_PCH_H #if defined(MONGO_EXPOSE_MACROS) +# if defined(_DEBUG) +# define BOOST_ENABLE_ASSERT_HANDLER 1 +# else +# define BOOST_DISABLE_ASSERTS 1 +# endif # define JS_C_STRINGS_ARE_UTF8 # undef SUPPORT_UCP # define SUPPORT_UCP -- cgit v1.2.1