]> source.dussan.org Git - gitea.git/commitdiff
Build go-git variants for windows (#15482)
authorzeripath <art27@cantab.net>
Thu, 15 Apr 2021 09:02:44 +0000 (10:02 +0100)
committerGitHub <noreply@github.com>
Thu, 15 Apr 2021 09:02:44 +0000 (12:02 +0300)
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>
Makefile

index dcfaf89a8a3e2d6883f5453f9d5cb6401d23aa1f..7bd479ff6bf1072c90304d2a585b0ffe75b38a6a 100644 (file)
--- 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