On 17 January 2018 at 20:54, Greg V <greg@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]+' _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev