Blame SOURCES/vte291-build-add-no-exceptions-sanity-check.patch

7e3850
From bba5901e2cd7fe9c0c7cb30983993d924f793792 Mon Sep 17 00:00:00 2001
7e3850
From: Christian Persch <chpe@src.gnome.org>
7e3850
Date: Tue, 19 Nov 2019 18:33:12 +0100
7e3850
Subject: [PATCH] build: Add no-exceptions sanity check
7e3850
7e3850
Some distributions pass -fexceptions in a way that overrides vte's
7e3850
own -fno-exceptions. This is a hard error; fail the build.
7e3850
7e3850
See https://gitlab.gnome.org/GNOME/gnome-build-meta/issues/207
7e3850
7e3850
(cherry picked from commit ff72577bd7d84c30faca3285d7ed4e7f75194f98)
7e3850
---
7e3850
 src/vteinternal.hh | 17 +++++++++++++++++
7e3850
 1 file changed, 17 insertions(+)
7e3850
7e3850
diff --git a/src/vteinternal.hh b/src/vteinternal.hh
7e3850
index 1521cd1632fb..0cd20f88c25d 100644
7e3850
--- a/src/vteinternal.hh
7e3850
+++ b/src/vteinternal.hh
7e3850
@@ -18,6 +18,23 @@
7e3850
 
7e3850
 #pragma once
7e3850
 
7e3850
+/* BEGIN sanity checks */
7e3850
+
7e3850
+/* Some distributions pass -fexceptions in a way that overrides vte's
7e3850
+ * own -fno-exceptions. This is a hard error; fail the build.
7e3850
+ * See https://gitlab.gnome.org/GNOME/gnome-build-meta/issues/207
7e3850
+ */
7e3850
+#ifdef __EXCEPTIONS
7e3850
+#error You MUST NOT use -fexceptions to build vte! Fix your build; and DO NOT file a bug upstream!
7e3850
+#endif
7e3850
+
7e3850
+/* While we're at it, check -fno-rtti too */
7e3850
+#ifdef __GXX_RTTI
7e3850
+#error You MUST NOT use -frtti to build vte! Fix your build system; and DO NOT file a bug upstream!
7e3850
+#endif
7e3850
+
7e3850
+/* END sanity checks */
7e3850
+
7e3850
 #include <glib.h>
7e3850
 
7e3850
 #include "vtedefines.hh"
7e3850
-- 
7e3850
2.25.4
7e3850