meson: Error if LLVM doesn't have rtti when building clover
authorDylan Baker <dylan@pnwbakers.com>
Mon, 1 Apr 2019 17:12:03 +0000 (10:12 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Wed, 3 Apr 2019 16:41:24 +0000 (09:41 -0700)
We already do this for nouveau, but it's required for clover too.

meson.build

index 715c966c679ff4637ae5086aca0dbc27ae05ecd8..46541254fb8251193f439bb4a6bb5c43dcd162dd 100644 (file)
@@ -1253,6 +1253,8 @@ if with_llvm
   if dep_llvm.get_configtool_variable('has-rtti') == 'NO'
     if with_gallium_nouveau
       error('The Nouveau driver requires rtti. You either need to turn off nouveau or use an LLVM built with LLVM_ENABLE_RTTI.')
+    elif with_gallium_opencl
+      error('The Clover OpenCL state tracker requires rtti, you need to turn off clover or use an LLVM built with LLVM_ENABLE_RTTI.')
     endif
     cpp_args += '-fno-rtti'
   endif