Skip to content

Commit

Permalink
erts: Fix cc.sh -MM on wsl 2
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
garazdawi committed Oct 17, 2024
1 parent 8747ca4 commit be37510
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erts/etc/win32/wsl_tools/vc/cc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ while (<FH>) {
}
flushDeps();
' $MSG_FILE "$MPATH"

RES=$?
rm -f $ERR_FILE $MSG_FILE
else
# Compile
Expand Down

0 comments on commit be37510

Please sign in to comment.