Fix perl searchpath for modern perl for MSVC tools
authorAndrew Dunstan <[email protected]>
Sun, 28 Oct 2018 16:22:32 +0000 (12:22 -0400)
committerAndrew Dunstan <[email protected]>
Sun, 28 Oct 2018 16:26:14 +0000 (12:26 -0400)
commit698255147391a16493ba6cefd014b272b757b4b8
treeb9b48256c7d29ec0d53e07f6b636e997cdc4dab9
parent0fead87601e5a9a4d22da738381ca558a4506114
Fix perl searchpath for modern perl for MSVC tools

Modern versions of perl no longer include the current directory in the
perl searchpath, as it's insecure. Instead of adding the current
directory, we get around the problem by adding the directory where the
script lives.

Problem noted by Victor Wagner.

Solution adapted from buildfarm client code.

Backpatch to all live versions.
src/tools/msvc/install.pl
src/tools/msvc/mkvcbuild.pl
src/tools/msvc/vcregress.pl