build: require GCC 13
GCC 13 is widely available and pre-packaged. Require it as a baseline
to make it obvious what is intended to work. Tested by building and
running the unit tests with GCC 13 and GCC 14.
Change-Id: Idf198bc0a7cc7ac506b6aaf5c18813df396f8c92
Signed-off-by: Brad Bishop <bradbish@qti.qualcomm.com>
diff --git a/meson.build b/meson.build
index 9cb3e69..38edc51 100644
--- a/meson.build
+++ b/meson.build
@@ -13,6 +13,14 @@
version: '1.0',
)
+cxx = meson.get_compiler('cpp')
+
+if (cxx.get_id() == 'gcc')
+ if (cxx.version().version_compare('<13.0'))
+ error('This project requires gcc-13 or higher')
+ endif
+endif
+
# Enable debugging for debug builds
if get_option('buildtype').startswith('debug')
add_project_arguments('-DMAPPER_ENABLE_DEBUG', language: 'cpp')