meson: Change default buildtype to debugoptimized
authorPeter Eisentraut <[email protected]>
Wed, 29 Mar 2023 07:24:37 +0000 (09:24 +0200)
committerPeter Eisentraut <[email protected]>
Wed, 29 Mar 2023 07:48:18 +0000 (09:48 +0200)
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

doc/src/sgml/installation.sgml
meson.build

index 70ab5b77d86cdaad1e0f0b44602b53d7c1945ba2..713952f1074bb15e71263ad09c088f1ce7659a1c 100644 (file)
@@ -3001,7 +3001,7 @@ ninja install
       <listitem>
        <para>
         This option can be used to specify the buildtype to use; defaults to
-        <option>release</option>.  If you'd like finer control on the debug
+        <option>debugoptimized</option>.  If you'd like finer control on the debug
         symbols and optimization levels than what this option provides, you
         can refer to the <option>--debug</option> and
         <option>--optimization</option> flags.
index 61e94be8641f0dac7895464c0c9441f5d026aebb..5e708d90450fefd87a20ca33d63090739734d67a 100644 (file)
@@ -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)