aboutsummaryrefslogtreecommitdiffstats
path: root/erts/etc
diff options
context:
space:
mode:
authorLukas Larsson <[email protected]>2019-02-18 11:32:24 +0100
committerLukas Larsson <[email protected]>2019-02-22 11:12:54 +0100
commit955a7ab963f9b1316897db30fbc42c9268459efc (patch)
tree154cd4ce07b7ec2620606567a15eb3e4b13bd70d /erts/etc
parentbf7c722bd3b30e04a56c2d369fd9f5501a8316d0 (diff)
downloadotp-955a7ab963f9b1316897db30fbc42c9268459efc.tar.gz
otp-955a7ab963f9b1316897db30fbc42c9268459efc.tar.bz2
otp-955a7ab963f9b1316897db30fbc42c9268459efc.zip
Make ld.sh on windows print better error reason
Diffstat (limited to 'erts/etc')
-rw-r--r--erts/etc/win32/msys_tools/vc/ld.sh5
1 files changed, 4 insertions, 1 deletions
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"