From b10d8f89ca8190b3973a5c4c0e419be21eab3777 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Fri, 10 Jun 2022 12:51:44 +0100 Subject: [PATCH] Docs: add example of multi-arch within same install tree --- docs/install.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/install.md b/docs/install.md index 4ae148a6..2cf96fab 100644 --- a/docs/install.md +++ b/docs/install.md @@ -98,6 +98,14 @@ use the following flags: npm install --arch=x64 --platform=linux --libc=glibc sharp ``` +Multiple platforms and architectures can be supported within the same installation tree. +The following example for macOS installs x64 binaries then adds (via a rebuild) arm64 binaries: + +```sh +npm install --platform=darwin --arch=x64 sharp +npm rebuild --platform=darwin --arch=arm64 sharp +``` + ## Custom libvips To use a custom, globally-installed version of libvips instead of the provided binaries,