ac/llvm: handle static/shared llvm init separately
[mesa.git] / meson.build
index c3511c9652c5ec70c814ca67f702ad787c11a2fa..db4f8fc551b82d3e8a025dd0d649a162f545cc65 100644 (file)
@@ -1513,6 +1513,7 @@ endif
 if with_llvm
   pre_args += '-DLLVM_AVAILABLE'
   pre_args += '-DMESA_LLVM_VERSION_STRING="@0@"'.format(dep_llvm.version())
+  pre_args += '-DLLVM_IS_SHARED=@0@'.format(_shared_llvm.to_int())
 
   # LLVM can be built without rtti, turning off rtti changes the ABI of C++
   # programs, so we need to build all C++ code in mesa without rtti as well to