aboutsummaryrefslogtreecommitdiff
path: root/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run.sh')
-rwxr-xr-xrun.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/run.sh b/run.sh
index 1adca4f..8c5852b 100755
--- a/run.sh
+++ b/run.sh
@@ -1,8 +1,9 @@
#!/bin/bash
build_dir=/home/dennis/projects/cmix/build-cmix-Desktop-Default
-
-if [ $1 == "benchmark" ] ; then
+if [ $# == 0 ] ; then
+ tool=""
+elif [ $1 == "benchmark" ] ; then
tool="valgrind --tool=cachegrind"
elif [ $1 == "valgrind" ] ; then
tool="valgrind --leak-check=yes --track-origins=yes"