diff options
author | Michael Paquier <michael@paquier.xyz> | 2023-07-04 07:25:34 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2023-07-04 07:25:34 +0900 |
commit | 72df1d3f1b9d39373edfa8ceed21a000a3cba66f (patch) | |
tree | fe1b33c52508bb88652d4a4b53b375d16a008ccd | |
parent | 957845789bb97dde2cb1ee11c1a769984131adf6 (diff) | |
download | postgresql-72df1d3f1b9d39373edfa8ceed21a000a3cba66f.tar.gz postgresql-72df1d3f1b9d39373edfa8ceed21a000a3cba66f.zip |
Show information about flex (version and command path) in meson output
Like bison, this is useful to know which version and command of flex are
detected by meson. For example, this was useful for me when using
win_flex.exe on Windows.
Reviewed-by: Peter Eisentraut
Discussion: https://postgr.es/m/ZDT3FbmrjBuBthmR@paquier.xyz
-rw-r--r-- | meson.build | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meson.build b/meson.build index aaa9daf266f..3ea4b0d72a0 100644 --- a/meson.build +++ b/meson.build @@ -361,6 +361,10 @@ bison_kw = { } flex_flags = [] +if flex.found() + flex_version_c = run_command(flex, '--version', check: true) + flex_version = flex_version_c.stdout().split(' ')[1].split('\n')[0] +endif flex_wrapper = files('src/tools/pgflex') flex_cmd = [python, flex_wrapper, '--builddir', '@BUILD_ROOT@', @@ -3370,6 +3374,7 @@ if meson.version().version_compare('>=0.57') { 'bison': '@0@ @1@'.format(bison.full_path(), bison_version), 'dtrace': dtrace, + 'flex': '@0@ @1@'.format(flex.full_path(), flex_version), }, section: 'Programs', ) |