diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-08-26 15:00:35 -0600 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2019-08-27 07:11:42 -0600 |
commit | ea4993b196ba65d24196fc3251adff8bfe316121 (patch) | |
tree | 7a128f91bd226d59ce749b0e74be3875e7160682 | |
parent | tunnel: do not query real interface name (diff) | |
download | wireguard-windows-ea4993b196ba65d24196fc3251adff8bfe316121.tar.xz wireguard-windows-ea4993b196ba65d24196fc3251adff8bfe316121.zip |
build: use goproxy when not remastering
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | build.bat | 1 |
2 files changed, 1 insertions, 2 deletions
@@ -3,7 +3,6 @@ export CGO_ENABLED := 1 export CGO_CFLAGS := -O3 -Wall -Wno-unused-function -Wno-switch -std=gnu11 -DWINVER=0x0601 export CGO_LDFLAGS := -Wl,--major-os-version=6 -Wl,--minor-os-version=1 -Wl,--major-subsystem-version=6 -Wl,--minor-subsystem-version=1 -Wl,--tsaware export GOOS := windows -export GOPROXY := direct rwildcard=$(foreach d,$(wildcard $1*),$(call rwildcard,$d/,$2) $(filter $(subst *,%,$2),$d)) SOURCE_FILES := $(call rwildcard,,*.go *.c *.h) @@ -39,6 +38,7 @@ x86/wireguard.exe: resources_386.syso $(SOURCE_FILES) remaster: export CC := x86_64-w64-mingw32-gcc remaster: export GOARCH := amd64 +remaster: export GOPROXY := direct remaster: rm -f go.sum go.mod cp go.mod.master go.mod @@ -32,7 +32,6 @@ if exist .deps\prepared goto :render :build set GOOS=windows - set GOPROXY=direct set GOPATH=%BUILDDIR%.deps\gopath set GOROOT=%BUILDDIR%.deps\go set CGO_ENABLED=1 |