1
0
mirror of https://github.com/postgres/postgres.git synced 2025-05-28 05:21:27 +03:00

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 6dd7a12075
commit 0cf721244a

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;