mirror of
https://github.com/djcb/mu.git
synced 2024-06-26 07:29:17 +02:00
mu: add memcheck script for valgrinding
This commit is contained in:
parent
c22eb434b7
commit
a4a682e578
6
.gitignore
vendored
6
.gitignore
vendored
|
@ -99,3 +99,9 @@ build-aux/
|
|||
/perf.data
|
||||
perf.data
|
||||
perf.data.old
|
||||
*vgdump
|
||||
/lib/asan.log*
|
||||
/man/mu-mfind.1
|
||||
/mu/mu-memcheck
|
||||
mu-*-coverage
|
||||
mu*tar.xz
|
||||
|
|
|
@ -252,6 +252,7 @@ AC_SUBST(MU_DOC_DIR, "${prefix}/share/doc/mu")
|
|||
AC_CONFIG_FILES([
|
||||
Makefile
|
||||
mu/Makefile
|
||||
mu/mu-memcheck
|
||||
lib/Makefile
|
||||
lib/doxyfile
|
||||
lib/utils/Makefile
|
||||
|
@ -269,6 +270,8 @@ toys/mug/Makefile
|
|||
man/Makefile
|
||||
m4/Makefile
|
||||
contrib/Makefile
|
||||
],[
|
||||
[chmod +x mu/mu-memcheck]
|
||||
])
|
||||
AC_OUTPUT
|
||||
|
||||
|
|
6
mu/mu-memcheck.in
Normal file
6
mu/mu-memcheck.in
Normal file
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
export G_SLICE=always-malloc
|
||||
export G_DEBUG=gc-friendly
|
||||
|
||||
libtool --mode=execute valgrind --tool=memcheck --leak-check=full --show-possibly-lost=no --leak-resolution=med --track-origins=yes --num-callers=20 --log-file='@abs_top_builddir@/mu-%p.vgdump' @abs_top_builddir@/mu/mu $@
|
Loading…
Reference in New Issue
Block a user