aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-04-15 10:02:44 +0100
committerGitHub <noreply@github.com>2021-04-15 12:02:44 +0300
commit61bae620c14b311ab77462b1356557f000a28ce1 (patch)
tree3aa7686206861d2ba25353175db151627f9ccc3d /Makefile
parentdc5a1d617d4a7bf1da77a473cd9b251a35ba5d74 (diff)
downloadgitea-61bae620c14b311ab77462b1356557f000a28ce1.tar.gz
gitea-61bae620c14b311ab77462b1356557f000a28ce1.zip
Build go-git variants for windows (#15482)
It appears that there are significant performance problems with the pure git backend on windows. Therefore until we can sort this out - provide go-git backend builds. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index dcfaf89a8a..7bd479ff6b 100644
--- a/Makefile
+++ b/Makefile
@@ -613,6 +613,9 @@ release-windows: | $(DIST_DIRS)
$(GO) install src.techknowlogick.com/xgo@latest; \
fi
CGO_CFLAGS="$(CGO_CFLAGS)" xgo -go $(XGO_VERSION) -buildmode exe -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out gitea-$(VERSION) .
+ifeq (,$(findstring gogit,$(TAGS)))
+ CGO_CFLAGS="$(CGO_CFLAGS)" xgo -go $(XGO_VERSION) -buildmode exe -dest $(DIST)/binaries -tags 'netgo osusergo gogit $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out gitea-$(VERSION)-gogit .
+endif
ifeq ($(CI),drone)
cp /build/* $(DIST)/binaries
endif