Skip to content

Commit d6fa318

Browse files
Build go-git variants for windows (go-gitea#15482)
Backport go-gitea#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>
1 parent b28c324 commit d6fa318

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Makefile

+3
Original file line numberDiff line numberDiff line change
@@ -577,6 +577,9 @@ release-windows: | $(DIST_DIRS)
577577
$(GO) install src.techknowlogick.com/xgo@latest; \
578578
fi
579579
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) .
580+
ifeq (,$(findstring gogit,$(TAGS)))
581+
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 .
582+
endif
580583
ifeq ($(CI),drone)
581584
cp /build/* $(DIST)/binaries
582585
endif

0 commit comments

Comments
 (0)