aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2021-03-10 23:59:57 -0500
committerGitHub <noreply@github.com>2021-03-10 23:59:57 -0500
commitb17579166551681d98746739846e3018eddc2b72 (patch)
treece231cf4f1bafb4dfd728f88b31b3b6ccd7a3753
parenta13c801b21f1211703ea5cafbd495665798c8df0 (diff)
downloadgitea-b17579166551681d98746739846e3018eddc2b72.tar.gz
gitea-b17579166551681d98746739846e3018eddc2b72.zip
build darwin on arm64 platforms (#14951)
fix #14945
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 527320ee52..889ec2d3ff 100644
--- a/Makefile
+++ b/Makefile
@@ -596,7 +596,7 @@ release-darwin: | $(DIST_DIRS)
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
$(GO) install src.techknowlogick.com/xgo@latest; \
fi
- CGO_CFLAGS="$(CGO_CFLAGS)" xgo -go $(XGO_VERSION) -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin-10.12/amd64' -out gitea-$(VERSION) .
+ CGO_CFLAGS="$(CGO_CFLAGS)" xgo -go $(XGO_VERSION) -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '$(LDFLAGS)' -targets 'darwin-10.12/amd64,darwin-10.12/arm64' -out gitea-$(VERSION) .
ifeq ($(CI),drone)
cp /build/* $(DIST)/binaries
endif