all: enable WITH_VALGRIND by default
This commit is contained in:
@@ -144,6 +144,9 @@ endif
|
|||||||
ifeq ($(wildcard ./vendor/ucl/include/.),)
|
ifeq ($(wildcard ./vendor/ucl/include/.),)
|
||||||
$(error ERROR: missing git submodule; run 'git submodule update --init')
|
$(error ERROR: missing git submodule; run 'git submodule update --init')
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(wildcard ./vendor/valgrind/include/.),)
|
||||||
|
$(error ERROR: missing git submodule; run 'git submodule update --init')
|
||||||
|
endif
|
||||||
ifeq ($(wildcard ./vendor/zlib/crc32.c),)
|
ifeq ($(wildcard ./vendor/zlib/crc32.c),)
|
||||||
$(error ERROR: missing git submodule; run 'git submodule update --init')
|
$(error ERROR: missing git submodule; run 'git submodule update --init')
|
||||||
endif
|
endif
|
||||||
|
|||||||
+5
-2
@@ -175,8 +175,11 @@ ACC_COMPILE_TIME_ASSERT_HEADER((char)(-1) == 255) // -funsigned-char
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// malloc debuggers
|
// malloc debuggers
|
||||||
#if (WITH_VALGRIND)
|
#ifndef WITH_VALGRIND
|
||||||
# include <valgrind/memcheck.h>
|
# define WITH_VALGRIND 1
|
||||||
|
#endif
|
||||||
|
#if (WITH_VALGRIND) && defined(__GNUC__) && !defined(__SANITIZE_ADDRESS__)
|
||||||
|
# include <valgrind/include/valgrind/memcheck.h>
|
||||||
#endif
|
#endif
|
||||||
#if !defined(VALGRIND_MAKE_MEM_DEFINED)
|
#if !defined(VALGRIND_MAKE_MEM_DEFINED)
|
||||||
# define VALGRIND_MAKE_MEM_DEFINED(addr,len) 0
|
# define VALGRIND_MAKE_MEM_DEFINED(addr,len) 0
|
||||||
|
|||||||
Reference in New Issue
Block a user