summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
authorEric Engestrom <eric.engestrom@intel.com>2019-08-28 00:56:24 +0100
committerEric Engestrom <eric.engestrom@intel.com>2019-09-06 22:19:01 +0100
commitef434fbc25c479863b612f67bee6a4f3ef65cd39 (patch)
treee26fee2aafe2d308fd8d6e962fee96f1681b417a /scons
parent5aebe37b53fb18d2923a5810f8c5733b879dc477 (diff)
downloadmesa-ef434fbc25c479863b612f67bee6a4f3ef65cd39.tar.gz
mesa-ef434fbc25c479863b612f67bee6a4f3ef65cd39.tar.bz2
mesa-ef434fbc25c479863b612f67bee6a4f3ef65cd39.zip
meson/scons/android: add LLVM_AVAILABLE binary flag
Signed-off-by: Eric Engestrom <eric.engestrom@intel.com> Acked-by: Michel Dänzer <mdaenzer@redhat.com>
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 19773eaa999..4bb03872f96 100644
--- a/scons/llvm.py
+++ b/scons/llvm.py
@@ -288,6 +288,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 = [('LLVM_AVAILABLE', 1)])
env.Prepend(CPPDEFINES = [('MESA_LLVM_VERSION_STRING=\\"%s\\"' % llvm_version)])
def exists(env):