[Mesa-dev] [PATCH v2 2/4] meson: handle LLVM 'x.x.xgit-revision' versions

Emil Velikov emil.l.velikov at gmail.com
Thu Jan 18 18:22:50 UTC 2018


On 17 January 2018 at 20:54, Greg V <greg at unrelenting.technology> wrote:
> When LLVM is built inside of a git repo (even way below, e.g. /usr/ports/.git
> exists, and LLVM is built in /usr/ports/devel/llvm50/work), its version
> becomes something like 5.0.0git-f8ab206b2176.
>
> New meson versions already handle this, but we support older versions too.
>
Crazy idea:
Using a grep-like solution analogous to autotools [1]. That will work
with old/new Meson, svn, git, plus any other suffix as LLVM devs
decide to change it.

-Emil

[1] llvm-config --version | egrep -o '^[0-9]+'


More information about the mesa-dev mailing list