summaryrefslogtreecommitdiff
path: root/scons
diff options
context:
space:
mode:
authorVinson Lee <vlee@freedesktop.org>2019-09-04 00:44:22 -0700
committerVinson Lee <vlee@freedesktop.org>2019-09-04 20:05:43 -0700
commite716a9e21330a743f104a00fa624713646e6657c (patch)
treeba642b3929bd7522ce256c4627dcbb4787ef17b6 /scons
parentcc3c217ce03cdb647ae71fe382caeddeabdef9b6 (diff)
downloadmesa-e716a9e21330a743f104a00fa624713646e6657c.tar.gz
mesa-e716a9e21330a743f104a00fa624713646e6657c.tar.bz2
mesa-e716a9e21330a743f104a00fa624713646e6657c.zip
scons: Add coroutines component to build.
Fixes: d32690b43c91 ("gallivm: add coroutine pass manager support") Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'scons')
-rw-r--r--scons/llvm.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/scons/llvm.py b/scons/llvm.py
index e587fddfc63..19773eaa999 100644
--- a/scons/llvm.py
+++ b/scons/llvm.py
@@ -265,6 +265,9 @@ def generate(env):
else:
components = ['engine', 'mcjit', 'bitwriter', 'mcdisassembler', 'irreader']
+ if llvm_version >= distutils.version.LooseVersion('8.0'):
+ components.append('coroutines')
+
env.ParseConfig('%s --libs ' % llvm_config + ' '.join(components))
env.ParseConfig('%s --ldflags' % llvm_config)
if llvm_version >= distutils.version.LooseVersion('3.5'):