mirror of
https://github.com/glest/glest-source.git
synced 2025-08-31 03:39:54 +02:00
- added script to run mg with valgrind
This commit is contained in:
13
mk/linux/mg_valgrind.sh
Executable file
13
mk/linux/mg_valgrind.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#! /bin/sh
|
||||
|
||||
exec 3>&1
|
||||
export GLIBCPP_FORCE_NEW=1
|
||||
export GLIBCXX_FORCE_NEW=1
|
||||
export G_SLICE=always-malloc
|
||||
|
||||
exec valgrind --num-callers=50 \
|
||||
--leak-check=yes \
|
||||
--leak-resolution=high \
|
||||
--show-reachable=yes \
|
||||
"$@" 2>&1 1>&3 3>&- |
|
||||
sed 's/^==[0-9]*==/==/' >&2 1>&2 3>&-
|
Reference in New Issue
Block a user