diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-12-14 23:54:03 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-12-16 03:14:14 +0100 |
commit | fe5550c3225ca9e1d434c2c763764f8056b0b7d4 (patch) | |
tree | 0ffb040532da8865a23588b36e69d8cbd17bc71a | |
parent | global: update to go 1.18 beta1 (diff) | |
download | wireguard-windows-fe5550c3225ca9e1d434c2c763764f8056b0b7d4.tar.xz wireguard-windows-fe5550c3225ca9e1d434c2c763764f8056b0b7d4.zip |
build: omit build info from binary
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,4 +1,4 @@ -GOFLAGS := -tags load_wgnt_from_rsrc -ldflags="-H windowsgui -s -w" -v -trimpath +GOFLAGS := -tags load_wgnt_from_rsrc -ldflags="-H windowsgui -s -w" -trimpath -buildinfo=false -buildvcs=false -v export GOOS := windows export PATH := $(CURDIR)/.deps/go/bin:$(PATH) @@ -73,7 +73,7 @@ if exist .deps\prepared goto :render echo [+] Assembling resources %1 %~2-w64-mingw32-windres -I ".deps\wireguard-nt\bin\%~1" -DWIREGUARD_VERSION_ARRAY=%WIREGUARD_VERSION_ARRAY% -DWIREGUARD_VERSION_STR=%WIREGUARD_VERSION% -i resources.rc -o "resources_%~3.syso" -O coff -c 65001 || exit /b %errorlevel% echo [+] Building program %1 - go build -tags load_wgnt_from_rsrc -ldflags="-H windowsgui -s -w" -trimpath -v -o "%~1\wireguard.exe" || exit /b 1 + go build -tags load_wgnt_from_rsrc -ldflags="-H windowsgui -s -w" -trimpath -buildinfo=false -buildvcs=false -v -o "%~1\wireguard.exe" || exit /b 1 if not exist "%~1\wg.exe" ( echo [+] Building command line tools %1 del .deps\src\*.exe .deps\src\*.o .deps\src\wincompat\*.o .deps\src\wincompat\*.lib 2> NUL |