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

From shiy.fnst@fujitsu.com
Subject RE: [RFC] building postgres with meson - v13
Date
Msg-id OSZPR01MB6310E286138C04567D3D146FFD259@OSZPR01MB6310.jpnprd01.prod.outlook.com
Whole thread Raw
In response to Re: [RFC] building postgres with meson - v13  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: [RFC] building postgres with meson - v13  (Andres Freund <andres@anarazel.de>)
List pgsql-hackers
Hi,

I noticed that `pg_config --configure` didn't show the options given when
building with meson.

For example,
meson setup build -Dcache=gcc.cache -Ddtrace=enabled -Dicu=enabled -Dcassert=true
-Dprefix=/home/postgres/install_meson/
meson compile -C build
meson install -C build

$ pg_config --configure

The options I specified (like dtrace) are not shown. I found they actually work
in compilation.
When specifying `-Ddtrace=enabled`, there is a log like this. And with
`-Ddtrace=disabled`, no such log.

[120/1834] /usr/bin/dtrace -C -h -s ../src/include/utils/../../backend/utils/probes.d -o src/include/utils/probes.h.tmp

Maybe it would be better if pg_config can output this information, to be
consistent with the output when building with `./configure` and `make`.

The output when building with `./configure` and `make`:
$ pg_config --configure
 '--prefix=/home/postgres/install/' '--cache' 'gcc.cache' '--enable-dtrace' '--with-icu' '--enable-cassert'


Regards,
Shi yu



pgsql-hackers by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Refactor to introduce pg_strcoll().
Next
From: Alvaro Herrera
Date:
Subject: Re: Move backup-related code to xlogbackup.c/.h