pgsql: meson: Restore implicit warning/debug/optimize flags for extensi

Started by Peter Eisentrautabout 2 years ago1 messagescomitters
Jump to latest
#1Peter Eisentraut
peter_e@gmx.net

meson: Restore implicit warning/debug/optimize flags for extensions

Meson uses warning/debug/optimize flags such as "-Wall", "-g", and
"-O2" automatically based on "--warnlevel" and "--buildtype" options.
And we use "--warning_level=1" and "--buildtype=debugoptimized" by
default.

But we need these flags for Makefile.global (for extensions) and
pg_config, so we need to compute them manually based on the
higher-level options.

Without this change, extensions building using pgxs wouldn't get -Wall
or optimization options.

Author: Sutou Kouhei <kou@clear-code.com>
Discussion: /messages/by-id/20240122.141139.931086145628347157.kou@clear-code.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/3482bab5e30a0cc7fba4c904ba21b4957b2876bd

Modified Files
--------------
meson.build | 32 ++++++++++++++++++++++++++++++++
src/include/meson.build | 4 ++--
2 files changed, 34 insertions(+), 2 deletions(-)