Skip to content

Commit 5aae36d

Browse files
committed
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
1 parent 563f21c commit 5aae36d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/src/sgml/installation.sgml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3001,7 +3001,7 @@ ninja install
30013001
<listitem>
30023002
<para>
30033003
This option can be used to specify the buildtype to use; defaults to
3004-
<option>release</option>. If you'd like finer control on the debug
3004+
<option>debugoptimized</option>. If you'd like finer control on the debug
30053005
symbols and optimization levels than what this option provides, you
30063006
can refer to the <option>--debug</option> and
30073007
<option>--optimization</option> flags.

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ project('postgresql',
1818
default_options: [
1919
'warning_level=1', #-Wall equivalent
2020
'b_pch=false',
21-
'buildtype=release',
21+
'buildtype=debugoptimized', # -O2 + debug
2222
# For compatibility with the autoconf build, set a default prefix. This
2323
# works even on windows, where it's a drive-relative path (i.e. when on
2424
# d:/somepath it'll install to d:/usr/local/pgsql)

0 commit comments

Comments
 (0)