diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-03-11 20:04:57 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-03-11 20:04:57 +0000 |
| commit | 3667c77f9037a7e7efe241fee72626813af94973 (patch) | |
| tree | 55a13e90ca186eeac55e1a619c857e3e3f373e86 | |
| parent | 9aec1c791a7669f19550e2dc299f898e57244a1f (diff) | |
Try to support lldb on OS X.
| -rwxr-xr-x | run/dcpomatic | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/run/dcpomatic b/run/dcpomatic index f3f1b84ff..fff9783e5 100755 --- a/run/dcpomatic +++ b/run/dcpomatic @@ -1,9 +1,14 @@ #!/bin/bash export LD_LIBRARY_PATH=build/src/lib:build/src/wx:build/src/asdcplib/src:$LD_LIBRARY_PATH +export DYLD_LIBRARY_PATH=/Users/carl/Environments/osx/64/lib:build/src/lib:build/src/wx:build/src/asdcplib/src:$DYLD_LIBRARY_PATH if [ "$1" == "--debug" ]; then shift - gdb --args build/src/tools/dcpomatic $* + if [ `which gdb` ]; then + gdb --args build/src/tools/dcpomatic $* + else + lldb build/src/tools/dcpomatic $* + fi elif [ "$1" == "--valgrind" ]; then shift valgrind --tool="memcheck" build/src/tools/dcpomatic $* |
