chore: Enable arm64 build on MacOs

This commit is contained in:
Alex Jbanca 2023-03-15 10:59:37 +02:00 committed by Alex Jbanca
parent 95a76fe33b
commit 68d9ba64b7
1 changed files with 0 additions and 6 deletions

View File

@ -18,12 +18,6 @@ endif
ifeq ($(detected_OS),Darwin)
GOBIN_SHARED_LIB_EXT := dylib
GOBIN_SHARED_LIB_CFLAGS := CGO_ENABLED=1 GOOS=darwin
# Qt14.x doesn't provides arm64 binaries on apple silicon
# See https://github.com/status-im/status-go/pull/3131#issuecomment-1406303234
ifeq ("$(shell sysctl -nq hw.optional.arm64)","1")
FORCE_ARCH ?= amd64
GOBIN_SHARED_LIB_CFLAGS=CGO_ENABLED=1 GOOS=darwin GOARCH=$(FORCE_ARCH)
endif
else ifeq ($(detected_OS),Windows)
GOBIN_SHARED_LIB_EXT := dll
GOBIN_SHARED_LIB_CGO_LDFLAGS := CGO_LDFLAGS=""