From 955a7ab963f9b1316897db30fbc42c9268459efc Mon Sep 17 00:00:00 2001 From: Lukas Larsson Date: Mon, 18 Feb 2019 11:32:24 +0100 Subject: Make ld.sh on windows print better error reason --- erts/etc/win32/msys_tools/vc/ld.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'erts/etc') diff --git a/erts/etc/win32/msys_tools/vc/ld.sh b/erts/etc/win32/msys_tools/vc/ld.sh index 8917251f51..22184faf76 100644 --- a/erts/etc/win32/msys_tools/vc/ld.sh +++ b/erts/etc/win32/msys_tools/vc/ld.sh @@ -178,7 +178,10 @@ if [ "$RES" = "0" -a -f "$CMANIFEST" ]; then RES=$? if [ "$RES" != "0" ]; then REMOVE=`echo "$OUTPUTRES" | sed 's,\\\;[12]$,,g'` - CREMOVE=`cygpath $REMOVE` + CREMOVE=`win2msys_path.sh $REMOVE` + ## If Defender or Search are enabled, they will lock just created files + ## and then mt will fail :/ + echo "If you get this error, make sure Windows Defender AND Windows Search is disabled">>/tmp/link.exe.${p}.1 rm -f "$CREMOVE" fi rm -f "$CMANIFEST" -- cgit v1.2.3