summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrun/dcpomatic6
1 files changed, 5 insertions, 1 deletions
diff --git a/run/dcpomatic b/run/dcpomatic
index 730b89d55..45f857ae2 100755
--- a/run/dcpomatic
+++ b/run/dcpomatic
@@ -16,7 +16,11 @@ export DYLD_LIBRARY_PATH=/Users/cah/osx-environment/$env/lib:/usr/local/lib
if [ "$1" == "--debug" ]; then
shift
- gdb --args $binary $*
+ if [[ "$(uname)" == Darwin ]]; then
+ /Applications/Xcode.app/Contents/Developer/usr/bin/lldb $binary $*
+ else
+ gdb --args $binary $*
+ fi
elif [ "$1" == "--valgrind" ]; then
shift
valgrind --tool="memcheck" --suppressions=suppressions --track-fds=yes --show-leak-kinds=all --leak-check=full $binary $*