]> granicus.if.org Git - postgresql/commit
Fix Perl coding error in msvc build system
authorPeter Eisentraut <peter_e@gmx.net>
Thu, 19 Feb 2015 01:24:30 +0000 (20:24 -0500)
committerPeter Eisentraut <peter_e@gmx.net>
Thu, 19 Feb 2015 01:24:30 +0000 (20:24 -0500)
commitd30292b8c45a1d909ff7d84bd6787c8827134fc3
tree67c7738176b926e0f6051ac8b3ae37144d8ec452
parent9c7dd350199fa030ccbd5538e1b8e13a9603fda4
Fix Perl coding error in msvc build system

Code like

    open(P, "cl /? 2>&1 |") || die "cl command not found";

does not actually catch any errors, because the exit status of the
command before the pipe is ignored.  The fix is to look at $?.

This also gave the opportunity to clean up the logic of this code a bit.
src/tools/msvc/Solution.pm
src/tools/msvc/VSObjectFactory.pm