From 8b2a4d6aa1ead0c4a11decbad5d82e7dc6ce43db Mon Sep 17 00:00:00 2001 From: Chris Cannam Date: Tue, 9 Mar 2021 18:41:46 +0000 Subject: [PATCH] Clarify architecture notes --- README.md | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 14b6fca..cb085ef 100644 --- a/README.md +++ b/README.md @@ -225,25 +225,28 @@ $ make -f otherbuilds/Makefile.linux Ensure the Xcode command-line tools are installed, and ideally also 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 ``` -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. -``` -$ meson build --cross-file cross/macos-x86_64.txt && ninja -C build -``` - -To build for Apple Silicon (arm64) regardless of the native -architecture: +To build for Apple Silicon (arm64): ``` $ 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 this: