mirror of
https://github.com/status-im/status-keycard-go.git
synced 2025-01-18 10:22:51 +00:00
chore: Add M1 support
This commit is contained in:
parent
e4fef0fb36
commit
0643533614
3
Makefile
3
Makefile
@ -12,7 +12,8 @@ ifeq ($(detected_OS),Darwin)
|
|||||||
LIB_EXT := dylib
|
LIB_EXT := dylib
|
||||||
ifeq ("$(shell sysctl -nq hw.optional.arm64)","1")
|
ifeq ("$(shell sysctl -nq hw.optional.arm64)","1")
|
||||||
# Building on M1 is still not supported, so in the meantime we crosscompile to amd64
|
# 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
|
endif
|
||||||
else ifeq ($(detected_OS),Windows)
|
else ifeq ($(detected_OS),Windows)
|
||||||
LIB_EXT:= dll
|
LIB_EXT:= dll
|
||||||
|
Loading…
x
Reference in New Issue
Block a user