Skip to content

Commit

Permalink
improve make cross to build windows/arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Sep 13, 2021
1 parent b11cd00 commit 92c51e7
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,8 @@ $(GOBIN)/gobump:

.PHONY: cross
cross: $(GOBIN)/goxz CREDITS
build() { \
goxz -n $(BIN) -pv=v$(VERSION) -os=$$1 -arch=$$2 \
-include _$(BIN) -build-ldflags=$(BUILD_LDFLAGS) ./cmd/$(BIN); \
}; \
build linux,darwin,windows amd64 && build linux,darwin arm64
goxz -n $(BIN) -pv=v$(VERSION) -include _$(BIN) -arch=amd64,arm64 \
-build-ldflags=$(BUILD_LDFLAGS) ./cmd/$(BIN)

$(GOBIN)/goxz:
go install github.com/Songmu/goxz/cmd/goxz@latest
Expand Down

0 comments on commit 92c51e7

Please sign in to comment.