[Mesa-dev] [PATCH] meson: Always include 'coroutines' in llvm optional modules

Mike Lothian mike at fireburn.co.uk
Sat Sep 7 14:20:29 UTC 2019


Without this I get build failures:

error: undefined reference to 'LLVMAddCoroEarlyPass'
error: undefined reference to 'LLVMAddCoroSplitPass'
error: undefined reference to 'LLVMAddCoroElidePass'
error: undefined reference to 'LLVMAddCoroCleanupPass'

Cc: Dylan Baker <dylan at pnwbakers.com>
Signed-off-by: Mike Lothian <mike at fireburn.co.uk>
---
 meson.build | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meson.build b/meson.build
index db21d4dbce4..9a3a9e1e0e1 100644
--- a/meson.build
+++ b/meson.build
@@ -1227,7 +1227,7 @@ if dep_libdrm.found()
 endif
 
 llvm_modules = ['bitwriter', 'engine', 'mcdisassembler', 'mcjit']
-llvm_optional_modules = []
+llvm_optional_modules = ['coroutines']
 if with_amd_vk or with_gallium_radeonsi or with_gallium_r600
   llvm_modules += ['amdgpu', 'native', 'bitreader', 'ipo']
   if with_gallium_r600
@@ -1239,7 +1239,6 @@ if with_gallium_opencl
     'all-targets', 'linker', 'coverage', 'instrumentation', 'ipo', 'irreader',
     'lto', 'option', 'objcarcopts', 'profiledata',
   ]
-  llvm_optional_modules += ['coroutines']
 endif
 
 if with_amd_vk or with_gallium_radeonsi
-- 
2.23.0



More information about the mesa-dev mailing list