From f1bebac13303320d55f4fba3e18d8ae5a1e29982 Mon Sep 17 00:00:00 2001 From: itchyny Date: Sat, 18 Sep 2021 23:46:57 +0900 Subject: [PATCH] improve make cross to build arm64 artifacts --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1c55104..b7b4daf 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,8 @@ $(GOBIN)/gobump: .PHONY: cross cross: $(GOBIN)/goxz CREDITS - goxz -n $(BIN) -pv=v$(VERSION) -build-ldflags=$(BUILD_LDFLAGS) ./cmd/$(BIN) + goxz -n $(BIN) -pv=v$(VERSION) -arch=amd64,arm64 \ + -build-ldflags=$(BUILD_LDFLAGS) ./cmd/$(BIN) $(GOBIN)/goxz: go install github.com/Songmu/goxz/cmd/goxz@latest