diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-11-27 23:11:32 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-11-27 23:11:32 +0100 |
| commit | ee231792fe8ec4d4f26ad81778ca5ae6187e46be (patch) | |
| tree | a966ef096304a7634c75c2db193c612b90377385 /run | |
| parent | 43ec2d1e3a5fdb53d1e3c4239695b39198e79167 (diff) | |
Add make_kdm.cc example.
Diffstat (limited to 'run')
| -rwxr-xr-x | run/examples/make_kdm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/run/examples/make_kdm b/run/examples/make_kdm new file mode 100755 index 00000000..2358696a --- /dev/null +++ b/run/examples/make_kdm @@ -0,0 +1,12 @@ +#!/bin/bash + +export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:build/src +if [ "$1" == "--debug" ]; then + shift + gdb --args build/examples/make_kdm "$@" +elif [ "$1" == "--valgrind" ]; then + shift + valgrind --tool="memcheck" --leak-check=full --show-reachable=yes build/examples/make_kdm "$@" +else + build/examples/make_kdm "$@" +fi |
