aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/build.bat
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-11-11 20:28:10 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-11-16 18:17:05 +0100
commit39a1934ad7f2fcbc55fefcbdc00b3d1db6a9ce2d (patch)
tree79950f4c68d2cb4da57c3ec6d2b35846bac3492c /build.bat
parentui: use resource numbers instead of resource indices (diff)
downloadwireguard-windows-39a1934ad7f2fcbc55fefcbdc00b3d1db6a9ce2d.tar.xz
wireguard-windows-39a1934ad7f2fcbc55fefcbdc00b3d1db6a9ce2d.zip
build: opt-in to resource loading of wintun.dll
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'build.bat')
-rw-r--r--build.bat2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.bat b/build.bat
index c4bf6138..ccbdf6bc 100644
--- a/build.bat
+++ b/build.bat
@@ -85,7 +85,7 @@ if exist .deps\prepared goto :render
if %1==arm64 (
copy "arm\wireguard.exe" "%~1\wireguard.exe" || exit /b 1
) else (
- go build -ldflags="-H windowsgui -s -w" -trimpath -v -o "%~1\wireguard.exe" || exit /b 1
+ go build -tags load_wintun_from_rsrc -ldflags="-H windowsgui -s -w" -trimpath -v -o "%~1\wireguard.exe" || exit /b 1
)
if not exist "%~1\wg.exe" (
echo [+] Building command line tools %1