From f9057cea517e01e05f08f00a741aad5bae154d62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20Wasserb=C3=A4ch?= Date: Sat, 3 Sep 2022 03:41:58 +0200 Subject: [PATCH] fix(FTBFS): meson: raise C++ standard to C++17 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit LLVM 16 requires this since [0] and instead of just going all over the various directories and adding overrides it should be easier to just raise this globally. GCC supports C++17 since GCC 8 (2018), Clang since version 5 (2017). Debian Buster (oldstable) has GCC 8.3 and Clang 7.0, so all major distributions should have this and there shouldn't be an issue with bumping. [0] Closes: Signed-off-by: Kai Wasserbäch Reviewed-by: Jesse Natalie Reviewed-by: David Heidelberg Reviewed-by: Ganesh Belgur Ramachandra Part-of: --- docs/install.rst | 4 ++-- meson.build | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/install.rst b/docs/install.rst index a26ab829471c6..f7591bdf431da 100644 --- a/docs/install.rst +++ b/docs/install.rst @@ -27,8 +27,8 @@ Compiler The following compilers are known to work, if you know of others or you're willing to maintain support for other compiler get in touch. -- GCC 4.2.0 or later (some parts of Mesa may require later versions) -- Clang - exact minimum requirement is currently unknown. +- GCC 8.0.0 or later (some parts of Mesa may require later versions) +- Clang 5.0 or later (some parts of Mesa may require later versions) - Microsoft Visual Studio 2019 Version 16.11 or later and Windows SDK of at least 20348 is required, for building on Windows. diff --git a/meson.build b/meson.build index 205421affa70b..4c6c4ffe4ceeb 100644 --- a/meson.build +++ b/meson.build @@ -27,7 +27,7 @@ project( ).stdout(), license : 'MIT', meson_version : '>= 0.53', - default_options : ['buildtype=debugoptimized', 'b_ndebug=if-release', 'c_std=c11', 'cpp_std=c++14'] + default_options : ['buildtype=debugoptimized', 'b_ndebug=if-release', 'c_std=c11', 'cpp_std=c++17'] ) # In recent versions, meson can inject some extra arguments to get richer