scons: Add coroutines component to build.
authorVinson Lee <vlee@freedesktop.org>
Wed, 4 Sep 2019 07:44:22 +0000 (00:44 -0700)
committerVinson Lee <vlee@freedesktop.org>
Thu, 5 Sep 2019 03:05:43 +0000 (20:05 -0700)
Fixes: d32690b43c91 ("gallivm: add coroutine pass manager support")
Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Dave Airlie <airlied@redhat.com>
scons/llvm.py

index e587fddfc63bb89a7ac73f3f56079c384502fb85..19773eaa999918300dbea720c6aa550e2d8b8a69 100644 (file)
@@ -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'):