Clarify architecture notes
This commit is contained in:
19
README.md
19
README.md
@@ -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:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user