Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 72df1d3

Browse filesBrowse 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
Copy full SHA for 72df1d3

File tree

1 file changed

+5
-0
lines changed
Filter options

1 file changed

+5
-0
lines changed

‎meson.build

Copy file name to clipboardExpand all lines: meson.build
+5Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.