X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=run%2Fdcpomatic_disk;h=a4b4ead55f8907273db321bcb9ae875c0725516b;hb=HEAD;hp=8c13183b61ce8af1c354abbd7e5ede38d197a176;hpb=d83c15bf4a53a5df6b6cdb099122c4221c477fc7;p=dcpomatic.git diff --git a/run/dcpomatic_disk b/run/dcpomatic_disk index 8c13183b6..ff5d8e7e5 100755 --- a/run/dcpomatic_disk +++ b/run/dcpomatic_disk @@ -3,6 +3,14 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" source $DIR/environment +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 + if [ "$1" == "--debug" ]; then shift gdb --args build/src/tools/dcpomatic2_disk $*