diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-02-04 12:21:06 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-02-04 12:21:06 +0100 |
| commit | 12cbc5c8076775aae280f6609576e1400f939005 (patch) | |
| tree | 32a7f7478643cd13868d1071ffb218aa9598ab0e | |
| parent | c9e807a398ffa4c6ba38a26e2721250bdbef10d7 (diff) | |
Make set_paths.sh work on x86_64 and arm64.
| -rw-r--r-- | platform/osx/set_paths.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/platform/osx/set_paths.sh b/platform/osx/set_paths.sh index 91d67ba94..65fcdedf3 100644 --- a/platform/osx/set_paths.sh +++ b/platform/osx/set_paths.sh @@ -1,5 +1,9 @@ base=$HOME/workspace -env=$HOME/osx-environment/x86_64/10.10 +if [[ "$(uname -m)" == arm64 ]]; then + env=$HOME/osx-environment/arm64/11.0 +else + env=$HOME/osx-environment/x86_64/10.10 +fi sdk=$HOME/SDK export CPPFLAGS= LDFLAGS="-L$base/lib -L$env/lib -isysroot $sdk/MacOSX11.0.sdk -arch x86_64" |
