diff options
author | 2019-05-13 18:18:47 +0200 | |
---|---|---|
committer | 2019-05-13 18:18:58 +0200 | |
commit | 27f2bc3235b61caff954af0d05fcd70f48abac5f (patch) | |
tree | 3d26436ef0d371ccf2ff32e13705d42acfbe017e | |
parent | version: bump (diff) | |
download | wireguard-windows-27f2bc3235b61caff954af0d05fcd70f48abac5f.tar.xz wireguard-windows-27f2bc3235b61caff954af0d05fcd70f48abac5f.zip |
build: actually set cflags
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | build.bat | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -1,6 +1,6 @@ -export CFLAGS := -O3 -Wall -std=gnu11 GOFLAGS := -ldflags="-H windowsgui -s -w" -v export CGO_ENABLED := 1 +export CGO_CFLAGS := -O3 -Wall -Wno-switch -std=gnu11 -DWINVER=0x0601 export GOOS := windows OLD_GOROOT := $(GOROOT) export GOROOT := $(PWD)/.deps/goroot @@ -30,11 +30,11 @@ if exist .deps\prepared goto :render :build set PATH=%STARTDIR%\.deps\go\bin\;%PATH% - set CFLAGS=-O3 -Wall -std=gnu11 set GOOS=windows set GOPATH=%STARTDIR%\.deps\gopath set GOROOT=%STARTDIR%\.deps\go set CGO_ENABLED=1 + set CGO_CFLAGS=-O3 -Wall -Wno-switch -std=gnu11 -DWINVER=0x0601 call :build_plat x86 i686 386 || goto :error call :build_plat amd64 x86_64 amd64 || goto :error |