From 5839c5a7fc2d84cb544cd372707dc2fa21f2f074 Mon Sep 17 00:00:00 2001 From: Ben Summers Date: Tue, 21 Feb 2006 15:47:08 +0000 Subject: Disable memory testing on Darwin -- order of destructors of static variables is nasty so debug processes segfault on termination --- lib/common/BoxPlatform.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/common') diff --git a/lib/common/BoxPlatform.h b/lib/common/BoxPlatform.h index b7a72da9..b766706a 100644 --- a/lib/common/BoxPlatform.h +++ b/lib/common/BoxPlatform.h @@ -46,6 +46,12 @@ #define PLATFORM_CLIB_FNS_INTERCEPTION_IMPOSSIBLE #endif +// Disable memory testing under Darwin, it just doesn't like it very much. +#ifdef __APPLE__ + // TODO: We really should get some decent leak detection code. + #define PLATFORM_DISABLE_MEM_LEAK_TESTING +#endif + // Find out if credentials on UNIX sockets can be obtained #ifndef HAVE_GETPEEREID #if !HAVE_DECL_SO_PEERCRED -- cgit v1.2.3