diff options
author | zeripath <art27@cantab.net> | 2021-04-15 10:02:44 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-15 12:02:44 +0300 |
commit | 61bae620c14b311ab77462b1356557f000a28ce1 (patch) | |
tree | 3aa7686206861d2ba25353175db151627f9ccc3d /Makefile | |
parent | dc5a1d617d4a7bf1da77a473cd9b251a35ba5d74 (diff) | |
download | gitea-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-- | Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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 |