aboutsummaryrefslogtreecommitdiffstats
path: root/meson.build
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-03-14 13:58:54 +0000
committerEric Engestrom <[email protected]>2019-04-04 16:08:11 +0000
commit05b114e5265722e970cb894ed6c3aa3026c0d04d (patch)
tree4f8b97ee38e06c6dfb7117be84dd6e8544b84fbc /meson.build
parent593614f4d47fbc8aadec6930d7c7c417c46bbd85 (diff)
simplify LLVM version string printing
Figure it out once in the build system, then just use that all over the place. Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'meson.build')
-rw-r--r--meson.build10
1 files changed, 1 insertions, 9 deletions
diff --git a/meson.build b/meson.build
index 917186a4f0b..2c98e9e18a9 100644
--- a/meson.build
+++ b/meson.build
@@ -1234,17 +1234,9 @@ if _llvm != 'false'
endif
if with_llvm
_llvm_version = dep_llvm.version().split('.')
-
- # 3 digits versions in LLVM only started from 3.4.1 on
- if dep_llvm.version().version_compare('>= 3.4.1')
- _llvm_patch = _llvm_version[2]
- else
- _llvm_patch = '0'
- endif
-
pre_args += [
'-DHAVE_LLVM=0x0@0@0@1@'.format(_llvm_version[0], _llvm_version[1]),
- '-DMESA_LLVM_VERSION_PATCH=@0@'.format(_llvm_patch),
+ '-DMESA_LLVM_VERSION_STRING="@0@"'.format(dep_llvm.version()),
]
# LLVM can be built without rtti, turning off rtti changes the ABI of C++