Re: [RFC] building postgres with meson - v13

From: Justin Pryzby <pryzby(at)telsasoft(dot)com>
To: Andres Freund <andres(at)anarazel(dot)de>
Cc: Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com>, Peter Geoghegan <pg(at)bowt(dot)ie>, wangw(dot)fnst(at)fujitsu(dot)com, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Nathan Bossart <nathandbossart(at)gmail(dot)com>, Andrew Dunstan <andrew(at)dunslane(dot)net>, Thomas Munro <thomas(dot)munro(at)gmail(dot)com>, samay sharma <smilingsamay(at)gmail(dot)com>, Nazir Bilal Yavuz <byavuz81(at)gmail(dot)com>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: [RFC] building postgres with meson - v13
Date: 2022-12-23 16:51:08
Message-ID: 20221223165108.GS1153@telsasoft.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> From 680ff3f7b4da1dbf21d0c7cd87af9bb5ee8b230c Mon Sep 17 00:00:00 2001
> From: Andres Freund <andres(at)anarazel(dot)de>
> Date: Wed, 21 Sep 2022 20:36:36 -0700
> Subject: [PATCH v17 01/23] meson: ci: wip: move compilerwarnings task to meson

> always:
> gcc_warning_script: |
> - time ./configure \
> - --cache gcc.cache \
> - --enable-dtrace \
> - ${LINUX_CONFIGURE_FEATURES} \
> - CC="ccache gcc" CXX="ccache g++" CLANG="ccache clang"
> - make -s -j${BUILD_JOBS} clean
> - time make -s -j${BUILD_JOBS} world-bin
> + mkdir build && cd build
> + CC="ccache gcc" CXX="ccache g++" \
> + meson setup \
> + -Dwerror=true \
> + -Dcassert=false \
> + -Ddtrace=enabled \
> + ${LINUX_MESON_FEATURES} \
> + ..
> + time ninja -j${BUILD_JOBS}

With gcc, autoconf uses -O2, so I think this should specify
buildtype=debugoptimized, or pass -Doptimization=2. Otherwise it ends
up in release mode with -O3.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2022-12-23 16:52:21 Re: pgsql: Doc: Explain about Column List feature.
Previous Message Justin Pryzby 2022-12-23 16:39:25 Re: [BUG] pg_upgrade test fails from older versions.