Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

Commit72df1d3

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 aredetected by meson. For example, this was useful for me when usingwin_flex.exe on Windows.Reviewed-by: Peter EisentrautDiscussion:https://postgr.es/m/ZDT3FbmrjBuBthmR@paquier.xyz
1 parent9578457 commit72df1d3

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)

[8]ページ先頭

©2009-2025 Movatter.jp