aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/build.bat
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2020-11-09 11:42:05 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2020-11-13 14:42:54 +0100
commit9335a4b539983d28582eb107cff1eea958161290 (patch)
tree2d98949ba7371ea47dce0c6f0605f89d27f3e6a0 /build.bat
parentbuild: rebuild linker after patching (diff)
downloadwireguard-windows-9335a4b539983d28582eb107cff1eea958161290.tar.xz
wireguard-windows-9335a4b539983d28582eb107cff1eea958161290.zip
build: set codepage at command line for rc
Work around limitation of llvm-rc. 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 32c1a9f9..4ff89cc3 100644
--- a/build.bat
+++ b/build.bat
@@ -79,7 +79,7 @@ if exist .deps\prepared goto :render
set GOARCH=%~3
mkdir %1 >NUL 2>&1
echo [+] Assembling resources %1
- %~2-w64-mingw32-windres -I ".deps\wintun\bin\%~1" -DWIREGUARD_VERSION_ARRAY=%WIREGUARD_VERSION_ARRAY% -DWIREGUARD_VERSION_STR=%WIREGUARD_VERSION% -i resources.rc -o "resources_%~3.syso" -O coff || exit /b %errorlevel%
+ %~2-w64-mingw32-windres -I ".deps\wintun\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 -ldflags="-H windowsgui -s -w" -trimpath -v -o "%~1\wireguard.exe" || exit /b 1
if not exist "%~1\wg.exe" (