summaryrefslogtreecommitdiff
path: root/packages/x11-dri/mesa/files/mesa-add-NDEBUG-without-rtti.patch
diff options
context:
space:
mode:
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, 0 insertions, 21 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
deleted file mode 100644
index 47403cf..0000000
--- a/packages/x11-dri/mesa/files/mesa-add-NDEBUG-without-rtti.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-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.')