projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3e276a2
)
Use lldb on macOS.
author
Carl Hetherington
<cth@carlh.net>
Sun, 4 Feb 2024 11:24:57 +0000
(12:24 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Sun, 4 Feb 2024 11:24:57 +0000
(12:24 +0100)
run/dcpomatic
patch
|
blob
|
history
diff --git
a/run/dcpomatic
b/run/dcpomatic
index 730b89d5501dd3cd3b5ba181bc996a4f8135482e..45f857ae2a9b695f0e6501c09baf2f46a676597e 100755
(executable)
--- 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 $*