diff options
author | Lukas Larsson <[email protected]> | 2019-02-18 11:32:24 +0100 |
---|---|---|
committer | Lukas Larsson <[email protected]> | 2019-02-22 11:12:54 +0100 |
commit | 955a7ab963f9b1316897db30fbc42c9268459efc (patch) | |
tree | 154cd4ce07b7ec2620606567a15eb3e4b13bd70d /erts/etc | |
parent | bf7c722bd3b30e04a56c2d369fd9f5501a8316d0 (diff) | |
download | otp-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.sh | 5 |
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" |