meson: Move C99 test earlier
authorPeter Eisentraut <peter@eisentraut.org>
Mon, 18 Aug 2025 05:35:55 +0000 (07:35 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Mon, 18 Aug 2025 05:42:39 +0000 (07:42 +0200)
commit4a4038068bb29eff2516296fc842b88741625afd
treec5be211416860207fce55894d0c83d901db8242b
parentba3d93b2e806a877f26922e0f9e1845d0ef1511b
meson: Move C99 test earlier

Move the test for compiler options for C99 earlier in meson.build,
before we make use of the compiler for other tests.  That way, if any
command-line options are needed, subsequent tests will also use them.
This is at the moment a theoretical problem, but it seems better to
get this correct.  It also matches the order in the Autoconf-based
build more closely.

Discussion: https://www.postgresql.org/message-id/flat/01a69441-af54-4822-891b-ca28e05b215a@eisentraut.org
meson.build