deps: strip 'svn' from LLVM version

This commit is contained in:
Dylan Baker 2017-09-26 13:05:30 -07:00
parent 035bee5c54
commit 5a8d1b6431
1 changed files with 4 additions and 1 deletions

View File

@ -163,7 +163,10 @@ class LLVMDependency(ExternalDependency):
mlog.log('Dependency LLVM found:', mlog.green('YES'))
self.is_found = True
self.version = out.strip()
# Currently meson doesn't really atempt to handle pre-release versions,
# so strip the 'svn' off the end, since it will probably cuase problems
# for users who want the patch version.
self.version = out.strip().rstrip('svn')
p, out = Popen_safe(
[self.llvmconfig, '--libs', '--ldflags', '--system-libs'])[:2]