Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2013-05-08 16:55:23 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-05-08 16:55:23 +0400
commit7d4eee2b1879e7e1224787761d3ef3bfe4a891d6 (patch)
treefa6ce41826f9c1e742520906afbff73928ed62f7 /intern/guardedalloc/SConscript
parent357655af32204d5edf2b6257bd39168f3d1c9cc7 (diff)
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.
Diffstat (limited to 'intern/guardedalloc/SConscript')
-rw-r--r--intern/guardedalloc/SConscript3
1 files changed, 3 insertions, 0 deletions
diff --git a/intern/guardedalloc/SConscript b/intern/guardedalloc/SConscript
index 0712e1c4489..eb558763dbe 100644
--- a/intern/guardedalloc/SConscript
+++ b/intern/guardedalloc/SConscript
@@ -31,6 +31,9 @@ defs = []
sources = ['intern/mallocn.c', 'intern/mmap_win.c']
+# could make this optional
+defs.append('WITH_GUARDEDALLOC')
+
if env['WITH_BF_CXX_GUARDEDALLOC']:
sources.append('cpp/mallocn.cpp')
defs.append('WITH_CXX_GUARDEDALLOC')