From: Vinson Lee Date: Wed, 4 Sep 2019 07:44:22 +0000 (-0700) Subject: scons: Add coroutines component to build. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e716a9e21330a743f104a00fa624713646e6657c;p=mesa.git scons: Add coroutines component to build. Fixes: d32690b43c91 ("gallivm: add coroutine pass manager support") Signed-off-by: Vinson Lee Reviewed-by: Dave Airlie --- 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'):