Re: [RFC] building postgres with meson - v13 - Mailing list pgsql-hackers

From Justin Pryzby
Subject Re: [RFC] building postgres with meson - v13
Date
Msg-id 20221223165108.GS1153@telsasoft.com
Whole thread Raw
In response to Re: [RFC] building postgres with meson - v13  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
> From 680ff3f7b4da1dbf21d0c7cd87af9bb5ee8b230c Mon Sep 17 00:00:00 2001
> From: Andres Freund <andres@anarazel.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.



pgsql-hackers by date:

Previous
From: Justin Pryzby
Date:
Subject: Re: [BUG] pg_upgrade test fails from older versions.
Next
From: Alvaro Herrera
Date:
Subject: Re: pgsql: Doc: Explain about Column List feature.