meson: handle LLVM 'x.x.xgit-revision' versions
authorGreg V <greg@unrelenting.technology>
Wed, 24 Jan 2018 18:02:43 +0000 (21:02 +0300)
committerDylan Baker <dylan@pnwbakers.com>
Wed, 24 Jan 2018 23:25:54 +0000 (15:25 -0800)
commit8fae5eddd9982f4586d76471d0196befeb46de24
tree205e8ec6776a0bdcdc919bb97a37843ea508c5f7
parent53f9131205a63fa8b282ab2a7e96c48209447da0
meson: handle LLVM 'x.x.xgit-revision' versions

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.

Fixes: 673dda8330769 ("meson: build "radv" vulkan driver for radeon hardware")
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
meson.build