platform-specific valgrind suppression
This commit is contained in:
parent
75c56e8494
commit
5163606d06
@ -99,6 +99,10 @@ ifneq ($(findstring darwin,$(CFG_OSTYPE)),)
|
||||
CFG_INSTALL_NAME = -Wl,-install_name,@rpath/$(1)
|
||||
endif
|
||||
|
||||
# Hack: not sure how to test if a file exists in make other than this
|
||||
OS_SUPP = $(patsubst %,--suppressions=%,\
|
||||
$(wildcard $(CFG_SRC_DIR)src/etc/$(CFG_OSTYPE).supp*))
|
||||
|
||||
ifneq ($(findstring mingw,$(CFG_OSTYPE)),)
|
||||
CFG_WINDOWSY := 1
|
||||
endif
|
||||
@ -154,7 +158,9 @@ ifdef CFG_UNIXY
|
||||
ifdef CFG_VALGRIND
|
||||
CFG_VALGRIND += --leak-check=full \
|
||||
--error-exitcode=100 \
|
||||
--quiet --suppressions=$(CFG_SRC_DIR)src/etc/x86.supp
|
||||
--quiet \
|
||||
--suppressions=$(CFG_SRC_DIR)src/etc/x86.supp \
|
||||
$(OS_SUPP)
|
||||
endif
|
||||
endif
|
||||
|
||||
|
9
src/etc/apple-darwin.supp
Normal file
9
src/etc/apple-darwin.supp
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
issue_1333_setenv_leak
|
||||
Memcheck:Leak
|
||||
fun:malloc_zone_malloc
|
||||
...
|
||||
fun:setenv
|
||||
fun:setenv__c_stack_shim
|
||||
...
|
||||
}
|
Loading…
Reference in New Issue
Block a user