projects
/
dcpomatic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add example ASAN_OPTIONS to script.
[dcpomatic.git]
/
run
/
dcpomatic
diff --git
a/run/dcpomatic
b/run/dcpomatic
index 429139dac3794494b938f6f76e746449e840cbf3..730b89d5501dd3cd3b5ba181bc996a4f8135482e 100755
(executable)
--- a/
run/dcpomatic
+++ b/
run/dcpomatic
@@
-4,6
+4,16
@@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
source $DIR/environment
binary=$build/src/tools/dcpomatic2
source $DIR/environment
binary=$build/src/tools/dcpomatic2
+if [[ "$(uname -m)" == arm64 ]]; then
+ env=arm64/11.0
+else
+ env=x86_64/10.10
+fi
+
+export DYLD_LIBRARY_PATH=/Users/cah/osx-environment/$env/lib:/usr/local/lib
+
+# export ASAN_OPTIONS=verbosity=1:malloc_context_size=20:detect_leaks=1
+
if [ "$1" == "--debug" ]; then
shift
gdb --args $binary $*
if [ "$1" == "--debug" ]; then
shift
gdb --args $binary $*