summaryrefslogtreecommitdiff
path: root/packages/x11-dri/mesa/files/mesa-add-NDEBUG-without-rtti.patch
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-06-28 12:53:13 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2018-06-28 12:53:13 +0300
commit08b57aa38a665e7a4b88c709246cada7b4a28711 (patch)
tree16c4b4d6ec0f9aeccb60efa977d7c24580d8bce7 /packages/x11-dri/mesa/files/mesa-add-NDEBUG-without-rtti.patch
parent3973c33e411b911fa06a560f7fa67877ae98ef44 (diff)
added slightly edited mesa from x11 repo
Diffstat (limited to 'packages/x11-dri/mesa/files/mesa-add-NDEBUG-without-rtti.patch')
-rw-r--r--packages/x11-dri/mesa/files/mesa-add-NDEBUG-without-rtti.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/packages/x11-dri/mesa/files/mesa-add-NDEBUG-without-rtti.patch b/packages/x11-dri/mesa/files/mesa-add-NDEBUG-without-rtti.patch
new file mode 100644
index 0000000..47403cf
--- /dev/null
+++ b/packages/x11-dri/mesa/files/mesa-add-NDEBUG-without-rtti.patch
@@ -0,0 +1,21 @@
+Author: Rasmus Thomsen <cogitri@exherbo.org>
+Reason: Mesa's meson build system doesn't pass
+NDEBUG to the cppargs when building with LLVM
+without RTTI support enabled. This causes the
+build to fail because some parts of debugging
+need RTTI support.
+Upstream: Created bug for it, https://bugs.freedesktop.org/show_bug.cgi?id=106391
+diff --git a/meson.build b/meson.build
+index 6e61766809..269b5bd3b9 100644
+--- a/meson.build
++++ b/meson.build
+@@ -1150,6 +1150,9 @@ if with_llvm
+ # ensure that linking works.
+ if dep_llvm.get_configtool_variable('has-rtti') == 'NO'
+ cpp_args += '-fno-rtti'
++ pre_args += [
++ '-DNDEBUG',
++ ]
+ 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.')