Improve gendef.pl diagnostic on failure to open sym file

There have been numerous buildfarm failures but the diagnostic is
currently silent about the reason for failure to open the file. Let's
see if we can get to the bottom of it.

Backpatch to all live branches.
This commit is contained in:
Andrew Dunstan 2017-10-26 10:10:37 -04:00
parent caeae886e2
commit d5fb450aab
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ while (<$ARGV[0]/*.obj>)
print ".";
system("dumpbin /symbols /out:symbols.out $_ >NUL")
&& die "Could not call dumpbin";
open(F, "<symbols.out") || die "Could not open symbols.out for $_\n";
open(F, "<symbols.out") || die "Could not open symbols.out for $_: $!\n";
while (<F>)
{
s/\(\)//g;