meson: Fix no-rtti in llvm detection
[mesa.git] / meson.build
index 590ac40a781ee67562aaaa9f3e83d9ee72f8d6f7..52a1075823fc76e2991ee5b2b7a5e988e00ef778 100644 (file)
@@ -1149,7 +1149,7 @@ if with_llvm
   # programs, so we need to build all C++ code in mesa without rtti as well to
   # ensure that linking works.
   if dep_llvm.get_configtool_variable('has-rtti') == 'NO'
-    cpp_args('-fno-rtti')
+    cpp_args += '-fno-rtti'
   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.')