From be375109bfb6cf0d021dcac2f47d85132f192e5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Backstr=C3=B6m?= Date: Tue, 10 Sep 2024 12:56:02 +0200 Subject: [PATCH] erts: Fix cc.sh -MM on wsl 2 cl.exe can return an error code with LNK1561 error. This error is ok as the correct result is still printed, so we reset the RES variable so that cc.sh does not exit with an error reason. --- erts/etc/win32/wsl_tools/vc/cc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erts/etc/win32/wsl_tools/vc/cc.sh b/erts/etc/win32/wsl_tools/vc/cc.sh index 5203ff5f17c5..50abaf077798 100755 --- a/erts/etc/win32/wsl_tools/vc/cc.sh +++ b/erts/etc/win32/wsl_tools/vc/cc.sh @@ -307,7 +307,7 @@ while () { } flushDeps(); ' $MSG_FILE "$MPATH" - + RES=$? rm -f $ERR_FILE $MSG_FILE else # Compile