1
0
mirror of https://github.com/upx/upx synced 2025-09-28 19:06:07 +08:00

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

View File

@ -144,6 +144,9 @@ endif
ifeq ($(wildcard ./vendor/ucl/include/.),)
$(error ERROR: missing git submodule; run 'git submodule update --init')
endif
ifeq ($(wildcard ./vendor/valgrind/include/.),)
$(error ERROR: missing git submodule; run 'git submodule update --init')
endif
ifeq ($(wildcard ./vendor/zlib/crc32.c),)
$(error ERROR: missing git submodule; run 'git submodule update --init')
endif

View File

@ -175,8 +175,11 @@ ACC_COMPILE_TIME_ASSERT_HEADER((char)(-1) == 255) // -funsigned-char
#endif
// malloc debuggers
#if (WITH_VALGRIND)
# include <valgrind/memcheck.h>
#ifndef WITH_VALGRIND
# define WITH_VALGRIND 1
#endif
#if (WITH_VALGRIND) && defined(__GNUC__) && !defined(__SANITIZE_ADDRESS__)
# include <valgrind/include/valgrind/memcheck.h>
#endif
#if !defined(VALGRIND_MAKE_MEM_DEFINED)
# define VALGRIND_MAKE_MEM_DEFINED(addr,len) 0