From ba2866444b610e9155fe4b30317cc5c21cff6d01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Fri, 11 Nov 2022 18:45:36 +0100 Subject: [PATCH] standalone: Support building arm64 on mac --- src/standalone/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/standalone/Makefile b/src/standalone/Makefile index 55a4a6a..f6f3155 100644 --- a/src/standalone/Makefile +++ b/src/standalone/Makefile @@ -47,9 +47,14 @@ endif UNAME_S=$(shell uname -s) UNAME_P=$(shell uname -p) ifeq ($(UNAME_S),Darwin) +ifeq ($(UNAME_P),arm) +WASMTIME_DIR=wasmtime-v1.0.1-aarch64-macos-c-api +PACKAGE_SUFFIX=arm64-macos +else WASMTIME_DIR=wasmtime-v1.0.1-x86_64-macos-c-api -WASMTIME_RELEASE_URL=https://github.com/bytecodealliance/wasmtime/releases/download/v1.0.1/wasmtime-v1.0.1-x86_64-macos-c-api.tar.xz PACKAGE_SUFFIX=x86_64-macos +endif +WASMTIME_RELEASE_URL=https://github.com/bytecodealliance/wasmtime/releases/download/v1.0.1/$(WASMTIME_DIR).tar.xz else WASMTIME_DIR=wasmtime-v1.0.1-x86_64-linux-c-api WASMTIME_RELEASE_URL=https://github.com/bytecodealliance/wasmtime/releases/download/v1.0.1/wasmtime-v1.0.1-x86_64-linux-c-api.tar.xz