summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2022-09-02 16:36:42 +0200
committerChristian Persch <chpe@src.gnome.org>2022-09-02 16:36:42 +0200
commitddf88475329a7f9943f8d1782434396d4137cca6 (patch)
tree5f282100a4ae78b0265817b71ea99645d31f5b8f
parente895306524f99c7d6fc1cc2ba58a7f572f8fd7fd (diff)
downloadgnome-terminal-ddf88475329a7f9943f8d1782434396d4137cca6.tar.gz
build: Assert sanity
-rw-r--r--meson.build8
1 files changed, 8 insertions, 0 deletions
diff --git a/meson.build b/meson.build
index b8b1e4f3..24a1a990 100644
--- a/meson.build
+++ b/meson.build
@@ -207,6 +207,14 @@ gtk_version_cxxflags = [
version_cxxflags = glib_version_cxxflags + gtk_version_cxxflags
+# Asserts must not be disabled
+
+assert(get_option('b_ndebug') == 'false', 'assertions may not be disabled')
+
+# LTO very much NOT supported
+
+assert(get_option('b_lto') == false, 'LTO not supported')
+
# Compiler flags
compiler_flags_common = [