add option to disable guardedalloc, helps for debugging memory errors

since guardedalloc confuses them.

The option cases a warning on build, since its ownly for experimental
use.
This commit is contained in:
Campbell Barton
2013-05-08 12:55:23 +00:00
parent 357655af32
commit 7d4eee2b18
4 changed files with 169 additions and 8 deletions

View File

@@ -281,6 +281,9 @@ mark_as_advanced(WITH_MEM_JEMALLOC)
option(WITH_CXX_GUARDEDALLOC "Enable GuardedAlloc for C++ memory allocation tracking (only enable for development)" OFF)
mark_as_advanced(WITH_CXX_GUARDEDALLOC)
option(WITH_GUARDEDALLOC "Enable GuardedAlloc (DISABLE AT OWN RISK!)" ON)
mark_as_advanced(WITH_GUARDEDALLOC)
option(WITH_ASSERT_ABORT "Call abort() when raising an assertion through BLI_assert()" OFF)
mark_as_advanced(WITH_ASSERT_ABORT)