From: Peter Eisentraut Date: Wed, 29 Mar 2023 07:24:37 +0000 (+0200) Subject: meson: Change default buildtype to debugoptimized X-Git-Tag: REL_16_BETA1~399 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5aae36dc9c6842e4269b4a713f7ac6583bd8a318;p=thirdparty%2Fpostgresql.git meson: Change default buildtype to debugoptimized This matches the Autoconf default (-O2 + debug) better. The previous default setting "release" used -O3, which resulted in different compiler warnings. At least for now, we want to avoid such divergence. Discussion: https://www.postgresql.org/message-id/flat/CAFj8pRBJD_Y-XcqwXSbWS24z%2B84FFX7ajhCan9ixc_m4bD63sA%40mail.gmail.com --- diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml index 70ab5b77d86..713952f1074 100644 --- a/doc/src/sgml/installation.sgml +++ b/doc/src/sgml/installation.sgml @@ -3001,7 +3001,7 @@ ninja install This option can be used to specify the buildtype to use; defaults to - . If you'd like finer control on the debug + . If you'd like finer control on the debug symbols and optimization levels than what this option provides, you can refer to the and flags. diff --git a/meson.build b/meson.build index 61e94be8641..5e708d90450 100644 --- a/meson.build +++ b/meson.build @@ -18,7 +18,7 @@ project('postgresql', default_options: [ 'warning_level=1', #-Wall equivalent 'b_pch=false', - 'buildtype=release', + 'buildtype=debugoptimized', # -O2 + debug # For compatibility with the autoconf build, set a default prefix. This # works even on windows, where it's a drive-relative path (i.e. when on # d:/somepath it'll install to d:/usr/local/pgsql)