Re: Add information about command path and version of flex in meson output

Peter Eisentraut <peter@eisentraut.org>

From: Peter Eisentraut <peter@eisentraut.org>
To: Michael Paquier <michael@paquier.xyz>, Postgres hackers <pgsql-hackers@lists.postgresql.org>
Date: 2023-07-03T06:34:39Z
Lists: pgsql-hackers
On 11.04.23 07:58, Michael Paquier wrote:
> While doing a few things on Windows with meson, I have noticed that,
> while we output some information related to bison after a setup step,
> there is nothing about flex.
> 
> I think that adding something about flex in the "Programs" section
> would be pretty useful, particularly for Windows as the command used
> could be "flex" as much as "win_flex.exe".

I think this would be useful.

 > +  flex_version = run_command(flex, '--version', check: true)
 > +  flex_version = flex_version.stdout().split(' ')[1].split('\n')[0]

Maybe this could be combined into one command?

Looks good otherwise.




Commits

  1. Show information about flex (version and command path) in meson output