all: enable WITH_VALGRIND by default

This commit is contained in:
Markus F.X.J. Oberhumer
2023-01-13 22:20:18 +01:00
parent e1b5904196
commit 44049ecf30
2 changed files with 8 additions and 2 deletions
+3
View File
@@ -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
View File
@@ -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