diff options
authorDylan Baker <>2018-12-31 19:23:52 -0800
committerDylan Baker <>2019-01-02 09:30:12 -0800
commita2596450ac7330c8965c819491038fb1ad454333 (patch)
parent1b97a72328b7b549aa8d050495f504815444c0dd (diff)
meson: Error out if building nouveau and using LLVM without rtti
Nouveau requires rtti. Often LLVM is configured without rtti, and code with and without cannot be linked safely. Lets just error out if nouveau is requested and llvm is built without rtti. Bugzilla: Fixes: c5a97d658ec19cc02719d7f86c1b0715e3d9ffc4 ("meson: fix builds against LLVM built without rtti") Reviewed-by: Bas Nieuwenhuizen <>
1 files changed, 3 insertions, 0 deletions
diff --git a/ b/
index 3e4afcef130..709f77a9c7a 100644
--- a/
+++ b/
@@ -1231,6 +1231,9 @@ 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'
+ 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.')
+ endif
cpp_args += '-fno-rtti'
elif with_amd_vk or with_gallium_radeonsi or with_gallium_swr