Add output path arg in generate-lwlocknames.pl
authorAndres Freund <[email protected]>
Mon, 18 Jul 2022 19:13:14 +0000 (12:13 -0700)
committerAndres Freund <[email protected]>
Mon, 18 Jul 2022 19:24:32 +0000 (12:24 -0700)
commit4f20506fe04092a9174bfc6dea908c3dfdbaaf1e
tree0f1b28c6b8424032fd0d9bae3e6790430c661fd8
parentb3a0d8324cf1f02c04a7099a436cfd68cfbf4566
Add output path arg in generate-lwlocknames.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 <[email protected]>
Discussion: https://postgr.es/m/5e216522-ba3c-f0e6-7f97-5276d0270029@enterprisedb.com
src/backend/storage/lmgr/generate-lwlocknames.pl
src/tools/msvc/Solution.pm