summaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-02-04 12:24:57 +0100
committerCarl Hetherington <cth@carlh.net>2024-02-04 12:24:57 +0100
commit0194a1d4f3fe080c59d5150b78448af81a621fdf (patch)
treef4184e55c28c8ea17db1f65583e3776cd003f76e /run
parent3e276a20ddcf633fcde338a7ae648162bd3f2443 (diff)
Use lldb on macOS.
Diffstat (limited to 'run')
-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 $*