[gucharmap] build: Assert sanity



commit b202696ad036f16a5044a3a4bf5109c742f39144
Author: Christian Persch <chpe src gnome org>
Date:   Sat Sep 3 19:22:50 2022 +0200

    build: Assert sanity

 meson.build | 8 ++++++++
 1 file changed, 8 insertions(+)
---
diff --git a/meson.build b/meson.build
index dca00591..7737b29c 100644
--- a/meson.build
+++ b/meson.build
@@ -138,6 +138,14 @@ foreach func: check_dl_functions_required
   assert(cc.has_function(func, dependencies: libdl_dep), func + ' not found')
 endforeach
 
+# 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 = [


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