Skip to content
Snippets Groups Projects
Commit 9935b4a0 authored by Andreas Schenk's avatar Andreas Schenk
Browse files

fixed valgrind attachment logic

parent dbcc12fe
Branches
Tags
No related merge requests found
...@@ -36,18 +36,23 @@ export DNG_INITDIR="$DNG_LIBDIR/openstructure" ...@@ -36,18 +36,23 @@ export DNG_INITDIR="$DNG_LIBDIR/openstructure"
#export QT_PLUGIN_PATH="$BIN_DIR/plugins" #export QT_PLUGIN_PATH="$BIN_DIR/plugins"
# retrieve absolute path to python executable # retrieve absolute path to python executable
pyexec="" pyexec="@PYTHON_BINARY@"
if [ -z "$DNG_ATTACH_VALGRIND" ]; then
pyexec="@PYTHON_BINARY@"
else
pyexec="valgrind --leak-check=full $pyexec"
fi
if [ ! -f "$pyexec" ]; then if [ ! -x "$pyexec" ]; then
echo "Error: Python executable '$pyexec' not found!" echo "Error: Python executable '$pyexec' not found!"
exit exit
fi fi
if [ -n "$DNG_ATTACH_VALGRIND" ]; then
if [ ! -x `which valgrind` ]; then
echo "Error: valgrind not found!"
exit
fi
pyexec="`which valgrind`#--leak-check=full#$pyexec"
fi
set -o noglob set -o noglob
opts="" opts=""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment