meson: Improve PG_VERSION_STR generation
authorAndres Freund <andres@anarazel.de>
Fri, 9 Dec 2022 16:53:23 +0000 (08:53 -0800)
committerAndres Freund <andres@anarazel.de>
Fri, 9 Dec 2022 16:54:47 +0000 (08:54 -0800)
commitfc7852c6cb89a5384e0b4ad30874de92f63f88be
treeb4af1555bc877b61a5ce65cb9808e79ff0f6ebb0
parentbad5116957eea2dc360c6c233be08284bd3d5364
meson: Improve PG_VERSION_STR generation

Previously the host operating system and 32/64 bit were not included and the
build machine's cpu was used, which is potentially wrong for cross builds.

Author: Juan José Santamaría Flecha <juanjo.santamaria@gmail.com>
Author: Andres Freund <andres@anarazel.de>
Discussion: https://postgr.es/m/CAC+AXB16gwYhKCdS+t0pk3U7kKtpVj5L-ynmhK3Gbea330At3w@mail.gmail.com
meson.build