meson: Error if LLVM is turned off but clover it turned on
authorDylan Baker <dylan@pnwbakers.com>
Mon, 1 Apr 2019 17:14:54 +0000 (10:14 -0700)
committerDylan Baker <dylan@pnwbakers.com>
Wed, 3 Apr 2019 16:41:24 +0000 (09:41 -0700)
Since clover has a hard requirement on LLVM

v2: - make error message more specific

Reviewed-by: Eric Engestrom <eric.engestrom@intel.com>
meson.build

index 46541254fb8251193f439bb4a6bb5c43dcd162dd..917186a4f0ba5e668c276c55548e6c5f56f7a797 100644 (file)
@@ -1260,6 +1260,8 @@ if with_llvm
   endif
 elif with_amd_vk or with_gallium_radeonsi or with_gallium_swr
   error('The following drivers require LLVM: Radv, RadeonSI, SWR. One of these is enabled, but LLVM is disabled.')
+elif with_gallium_opencl
+  error('The OpenCL "Clover" state tracker requires LLVM, but LLVM is disabled.')
 endif
 
 if (with_amd_vk or with_gallium_radeonsi or with_gallium_opencl or