X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;ds=sidebyside;f=run%2Fdcpomatic;h=45f857ae2a9b695f0e6501c09baf2f46a676597e;hb=c1c05a9da5cfdc0e171a51dd25be4dd9c4577587;hp=429139dac3794494b938f6f76e746449e840cbf3;hpb=dc4eb9ec4a4741d02d5f3060634368b2aada1a2c;p=dcpomatic.git diff --git a/run/dcpomatic b/run/dcpomatic index 429139dac..45f857ae2 100755 --- a/run/dcpomatic +++ b/run/dcpomatic @@ -4,9 +4,23 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" 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 [[ "$(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 $*