scons: define MESA_LLVM_VERSION_STRING like the other build systems do

Graphics / Mesa 3D Graphics Library / Mesa - Eric Engestrom [intel.com] - 22 August 2019 15:08 EDT



###

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

3ea83f4c9b7 scons: define MESA_LLVM_VERSION_STRING like the other build systems do
scons/llvm.py | 1 +
1 file changed, 1 insertion(+)

Upstream: cgit.freedesktop.org


  • Share