From 06435336146a7143b95a14884834042dedde8d35 Mon Sep 17 00:00:00 2001 From: Alex Jbanca Date: Fri, 10 Mar 2023 09:03:22 +0200 Subject: [PATCH] chore: Add M1 support --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 63cc7a3..137626c 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,8 @@ ifeq ($(detected_OS),Darwin) LIB_EXT := dylib ifeq ("$(shell sysctl -nq hw.optional.arm64)","1") # Building on M1 is still not supported, so in the meantime we crosscompile to amd64 - CGOFLAGS=CGO_ENABLED=1 GOOS=darwin GOARCH=amd64 + FORCE_ARCH ?= amd64 + CGOFLAGS=CGO_ENABLED=1 GOOS=darwin GOARCH=$(FORCE_ARCH) endif else ifeq ($(detected_OS),Windows) LIB_EXT:= dll