Commit 59c31d8d authored by Mathieu Duponchelle's avatar Mathieu Duponchelle 🐸

meson: improve flex version parsing

the output of flex --version can contain more than one space
parent 600f4fb6
......@@ -11,7 +11,7 @@ if flexversion_res.returncode() != 0
error('Could not get flex version (@0@)'.format(flexversion_res.stderr()))
endif
flexversion = flexversion_res.stdout().split('\n')[0].split(' ')[1].strip()
flexversion = flexversion_res.stdout().split('\n')[0].split(' ')[-1].strip()
if flexversion.version_compare('<' + flex_min_version)
error('flex version @0@ >= @1@: NO'.format(flexversion, flex_min_version))
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment