summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortechknowlogick <techknowlogick@gitea.io>2020-08-24 18:38:47 -0400
committerGitHub <noreply@github.com>2020-08-24 18:38:47 -0400
commitcfbfb73c5656a48a0bd0733b384f5316741a753f (patch)
treea02454c02bcea3e9124180e2f72c084caacdc8bd
parent4a548a033210ff8265a93a5292a847ff4b3abe31 (diff)
downloadgitea-cfbfb73c5656a48a0bd0733b384f5316741a753f.tar.gz
gitea-cfbfb73c5656a48a0bd0733b384f5316741a753f.zip
go1.15 on windows (#12589) (#12593)
We don't support go1.15 on 1.12.x branch, however this will allow users who chose to build with go1.15 on windows to be successful
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 07632d91b4..095252ea0f 100644
--- a/Makefile
+++ b/Makefile
@@ -40,8 +40,10 @@ endif
ifeq ($(OS), Windows_NT)
+ GOFLAGS := -v -buildmode=exe
EXECUTABLE ?= gitea.exe
else
+ GOFLAGS := -v
EXECUTABLE ?= gitea
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Darwin)
@@ -54,7 +56,6 @@ endif
GOFMT ?= gofmt -s
-GOFLAGS := -v
EXTRA_GOFLAGS ?=
MAKE_VERSION := $(shell $(MAKE) -v | head -n 1)
@@ -531,7 +532,7 @@ release-windows: | $(DIST_DIRS)
@hash xgo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
GO111MODULE=off $(GO) get -u src.techknowlogick.com/xgo; \
fi
- CGO_CFLAGS="$(CGO_CFLAGS)" GO111MODULE=off xgo -go $(XGO_VERSION) -dest $(DIST)/binaries -tags 'netgo osusergo $(TAGS)' -ldflags '-linkmode external -extldflags "-static" $(LDFLAGS)' -targets 'windows/*' -out gitea-$(VERSION) .
+ CGO_CFLAGS="$(CGO_CFLAGS)" GO111MODULE=off 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 ($(CI),drone)
cp /build/* $(DIST)/binaries
endif