File 0568-Update-wsl-env-setup-instruction.patch of Package erlang
From 89a7e6c3f9f3b45f0833cf5ef8096315663082ad Mon Sep 17 00:00:00 2001
From: Dan Gudmundsson <dgud@erlang.org>
Date: Thu, 24 Jun 2021 10:12:59 +0200
Subject: [PATCH 2/2] Update wsl env setup instruction
The default must be x64 nowadays, print that instead of without x64.
---
otp_build | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/otp_build b/otp_build
index 19dba80542..d7bbab9543 100755
--- a/otp_build
+++ b/otp_build
@@ -1145,8 +1145,8 @@ case $TARGET in
*)
if [ -x /bin/wslpath -a X"$OVERRIDE_TARGET" = X"" \
-a X"$1" != X"env_win32" -a X"$1" != X"env_msys32" -a X"$1" != X"env_msys64" ]; then
- echo "Building linux binary; if you intended to cross build for win32 use" >&2
- echo ' eval `./otp_build env_win32`\n' >&2
+ echo "Building linux binary; if you intended to cross build for win32 (x64) use" >&2
+ echo ' eval `./otp_build env_win32 x64`\n' >&2
fi
;;
esac
--
2.26.2