Clarify architecture notes

This commit is contained in:
Chris Cannam
2021-03-09 18:41:46 +00:00
parent fcc952e81a
commit 8b2a4d6aa1

View File

@@ -225,25 +225,28 @@ $ make -f otherbuilds/Makefile.linux
Ensure the Xcode command-line tools are installed, and ideally also Ensure the Xcode command-line tools are installed, and ideally also
install libsamplerate and libsndfile. install libsamplerate and libsndfile.
To build for the native architecture of the build machine: To build for the default architecture:
``` ```
$ meson build && ninja -C build $ meson build && ninja -C build
``` ```
To build for Intel (x86_64) regardless of the native architecture: Which architecture is the default may depend on the version of Meson
and/or the current shell. To force a particular architecture you can
use a Meson cross-file, as follows.
``` To build for Apple Silicon (arm64):
$ meson build --cross-file cross/macos-x86_64.txt && ninja -C build
```
To build for Apple Silicon (arm64) regardless of the native
architecture:
``` ```
$ meson build --cross-file cross/macos-arm64.txt && ninja -C build $ meson build --cross-file cross/macos-arm64.txt && ninja -C build
``` ```
To build for Intel (x86_64):
```
$ meson build --cross-file cross/macos-x86_64.txt && ninja -C build
```
You can build a universal binary library for both architectures like You can build a universal binary library for both architectures like
this: this: