Skip to content

Commit 72df1d3

Browse files
committed
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
1 parent 9578457 commit 72df1d3

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

meson.build

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,10 @@ bison_kw = {
361361
}
362362

363363
flex_flags = []
364+
if flex.found()
365+
flex_version_c = run_command(flex, '--version', check: true)
366+
flex_version = flex_version_c.stdout().split(' ')[1].split('\n')[0]
367+
endif
364368
flex_wrapper = files('src/tools/pgflex')
365369
flex_cmd = [python, flex_wrapper,
366370
'--builddir', '@BUILD_ROOT@',
@@ -3370,6 +3374,7 @@ if meson.version().version_compare('>=0.57')
33703374
{
33713375
'bison': '@0@ @1@'.format(bison.full_path(), bison_version),
33723376
'dtrace': dtrace,
3377+
'flex': '@0@ @1@'.format(flex.full_path(), flex_version),
33733378
},
33743379
section: 'Programs',
33753380
)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy