[vte] build: Drop -fno-exceptions -fno-rtti



commit 7d97382b11e76dbafc790154c2ca7b39b9af70d8
Author: Christian Persch <chpe src gnome org>
Date:   Wed May 27 21:17:04 2020 +0200

    build: Drop -fno-exceptions -fno-rtti
    
    Fixes: https://gitlab.gnome.org/GNOME/vte/-/issues/185

 meson.build        |  2 --
 src/vteinternal.hh | 13 ++++---------
 2 files changed, 4 insertions(+), 11 deletions(-)
---
diff --git a/meson.build b/meson.build
index 67a3eb08..d223ebda 100644
--- a/meson.build
+++ b/meson.build
@@ -333,8 +333,6 @@ compiler_flags_cxx_only = [
 ]
 
 compiler_flags_cxx_required = [
-  '-fno-exceptions',
-  '-fno-rtti',
   '-fvisibility-inlines-hidden',
   '-fvisibility=hidden',
 ]
diff --git a/src/vteinternal.hh b/src/vteinternal.hh
index 99582653..33cfde3c 100644
--- a/src/vteinternal.hh
+++ b/src/vteinternal.hh
@@ -20,17 +20,12 @@
 
 /* BEGIN sanity checks */
 
-/* Some distributions pass -fexceptions in a way that overrides vte's
- * own -fno-exceptions. This is a hard error; fail the build.
- * See https://gitlab.gnome.org/GNOME/gnome-build-meta/issues/207
- */
-#ifdef __EXCEPTIONS
-#error You MUST NOT use -fexceptions to build vte! Fix your build; and DO NOT file a bug upstream!
+#ifndef __EXCEPTIONS
+#error You MUST NOT use -fno-exceptions to build vte! Fix your build; and DO NOT file a bug upstream!
 #endif
 
-/* While we're at it, check -fno-rtti too */
-#ifdef __GXX_RTTI
-#error You MUST NOT use -frtti to build vte! Fix your build system; and DO NOT file a bug upstream!
+#ifndef __GXX_RTTI
+#error You MUST NOT use -fno-rtti to build vte! Fix your build system; and DO NOT file a bug upstream!
 #endif
 
 /* END sanity checks */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]