diff options
| author | Carl Hetherington <cth@carlh.net> | 2025-01-15 23:56:41 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2025-01-15 23:56:41 +0100 |
| commit | 90a1146de8e3cc9e03d3a25953c90462e8f49728 (patch) | |
| tree | 617d7ce3f49766571313865e0b4ffd0ed8f009f5 /run | |
| parent | 511d1b7325f2f0a027ca72b5bc1fc3798abb8bbc (diff) | |
Tinker with local build path setup on macOS.
Diffstat (limited to 'run')
| -rwxr-xr-x | run/dcpomatic | 1 | ||||
| -rw-r--r-- | run/environment | 8 |
2 files changed, 7 insertions, 2 deletions
diff --git a/run/dcpomatic b/run/dcpomatic index abc0cf11b..c4b1d15f2 100755 --- a/run/dcpomatic +++ b/run/dcpomatic @@ -12,7 +12,6 @@ fi # Allow running from a tree built using cdist export LD_LIBRARY_PATH=$DIR/../../../lib:$DIR/../../../lib64:$LD_LIBRARY_PATH -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 diff --git a/run/environment b/run/environment index 822e0603a..cf1448c23 100644 --- a/run/environment +++ b/run/environment @@ -1,3 +1,9 @@ +if [[ "$(uname -m)" == arm64 ]]; then + env_sub=arm64/11.0 +else + env_sub=x86_64/10.10 +fi + DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" build=$DIR/../build env=$DIR/../../.. @@ -5,6 +11,6 @@ export LD_LIBRARY_PATH=$build/src/lib:$build/src/wx:$env/lib:/usr/local/lib64:/u if [[ $(readlink -f $DIR/..) =~ (.*build/[^/]*) ]]; then export LD_LIBRARY_PATH=${BASH_REMATCH[1]}/lib:$LD_LIBRARY_PATH fi -export DYLD_LIBRARY_PATH=$build/src/lib:$build/src/wx:/Users/ci/workspace/lib +export DYLD_LIBRARY_PATH=$build/src/lib:$build/src/wx:/Users/ci/workspace/lib:/Users/cah/osx-environment/$env_sub/lib:/usr/local/lib export DCPOMATIC_GRAPHICS=$DIR/../graphics |
