summaryrefslogtreecommitdiffstats
path: root/scons
diff options
context:
space:
mode:
authorEric Engestrom <[email protected]>2019-08-03 01:49:11 +0100
committerEric Engestrom <[email protected]>2019-08-22 16:08:09 +0100
commit3ea83f4c9b7edadef481b9c3d3d2e584b5911da2 (patch)
tree101290106495b003aa268f05c6bc0cbe252fea91 /scons
parentc037fe5ad1b3556809e5a549306a52a8a8bd1cbf (diff)
scons: define MESA_LLVM_VERSION_STRING like the other build systems do
Signed-off-by: Eric Engestrom <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'scons')
-rw-r--r--scons/llvm.py1
1 files changed, 1 insertions, 0 deletions
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