From 3ea83f4c9b7edadef481b9c3d3d2e584b5911da2 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Sat, 3 Aug 2019 01:49:11 +0100 Subject: [PATCH] scons: define MESA_LLVM_VERSION_STRING like the other build systems do Signed-off-by: Eric Engestrom Reviewed-by: Bas Nieuwenhuizen --- scons/llvm.py | 1 + 1 file changed, 1 insertion(+) diff --git a/scons/llvm.py b/scons/llvm.py index 0c15b279aba..e587fddfc63 100644 --- a/scons/llvm.py +++ b/scons/llvm.py @@ -285,6 +285,7 @@ def generate(env): llvm_version_minor = int(llvm_version.version[1]) llvm_version_hex = '0x%02x%02x' % (llvm_version_major, llvm_version_minor) env.Prepend(CPPDEFINES = [('HAVE_LLVM', llvm_version_hex)]) + env.Prepend(CPPDEFINES = [('MESA_LLVM_VERSION_STRING=\\"%s\\"' % llvm_version)]) def exists(env): return True -- 2.30.2