Add output directory option to gen_node_support.pl
authorAndres Freund <andres@anarazel.de>
Mon, 18 Jul 2022 19:32:26 +0000 (12:32 -0700)
committerAndres Freund <andres@anarazel.de>
Mon, 18 Jul 2022 19:32:53 +0000 (12:32 -0700)
commitadba4b74710669cefe8e66cd8f586b47e6431f48
treebfc9a924d3ab3c749a7cda03e59c25d9f1601168
parentc8a9246e09cc2786923df8e5abf3c9c317f3493c
Add output directory option to gen_node_support.pl

This is in preparation for building postgres with meson / ninja.

When building with meson, commands are run at the root of the build tree. Add
an option to put build output into the appropriate place. This can be utilized
by src/tools/msvc/ for a minor simplification, which also provides some
coverage for the new option.

Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com>
Discussion: https://postgr.es/m/5e216522-ba3c-f0e6-7f97-5276d0270029@enterprisedb.com
src/backend/nodes/gen_node_support.pl
src/tools/msvc/Solution.pm