Re: [RFC] building postgres with meson - v13
| От | Justin Pryzby |
|---|---|
| Тема | Re: [RFC] building postgres with meson - v13 |
| Дата | |
| Msg-id | 20221223165108.GS1153@telsasoft.com обсуждение исходный текст |
| Ответ на | Re: [RFC] building postgres with meson - v13 (Andres Freund <andres@anarazel.de>) |
| Список | 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 по дате отправления: