From 52dc9a656c9502b56370b8de9e6c8ac21e1b6425 Mon Sep 17 00:00:00 2001 From: Davide Pesavento Date: Wed, 11 Dec 2024 18:14:14 -0500 Subject: [PATCH] build: require gcc >= 9.1, recommend gcc >= 10.2 Similarly, recommend clang 10 or later. On macOS, the minimum Xcode version is now 11, the recommended one is still 13 or later. Change-Id: I169f303df6f16550f135192f1a1658f013bda770 --- .jenkins.d/00-deps.sh | 2 +- .waf-tools/default-compiler-flags.py | 15 +++++++++------ 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.jenkins.d/00-deps.sh b/.jenkins.d/00-deps.sh index b0e54a0..17b544a 100755 --- a/.jenkins.d/00-deps.sh +++ b/.jenkins.d/00-deps.sh @@ -18,7 +18,7 @@ APT_PKGS=( pkg-config python3 ) -FORMULAE=(boost openssl pkg-config) +FORMULAE=(boost openssl pkgconf) PIP_PKGS=() case $JOB_NAME in *code-coverage) diff --git a/.waf-tools/default-compiler-flags.py b/.waf-tools/default-compiler-flags.py index e412692..3e001a9 100644 --- a/.waf-tools/default-compiler-flags.py +++ b/.waf-tools/default-compiler-flags.py @@ -16,16 +16,16 @@ def configure(conf): errmsg = '' warnmsg = '' if cxx == 'gcc': - if ccver < (7, 4, 0): + if ccver < (9, 1, 0): errmsg = ('The version of gcc you are using is too old.\n' - 'The minimum supported gcc version is 9.3.') - elif ccver < (9, 3, 0): - warnmsg = ('Using a version of gcc older than 9.3 is not ' + 'The minimum supported gcc version is 10.2.') + elif ccver < (10, 2, 0): + warnmsg = ('Using a version of gcc older than 10.2 is not ' 'officially supported and may result in build failures.') conf.flags = GccFlags() elif cxx == 'clang': if Utils.unversioned_sys_platform() == 'darwin': - if ccver < (10, 0, 0): + if ccver < (11, 0, 0): errmsg = ('The version of Xcode you are using is too old.\n' 'The minimum supported Xcode version is 13.0.') elif ccver < (13, 0, 0): @@ -33,7 +33,10 @@ def configure(conf): 'officially supported and may result in build failures.') elif ccver < (7, 0, 0): errmsg = ('The version of clang you are using is too old.\n' - 'The minimum supported clang version is 7.0.') + 'The minimum supported clang version is 10.0.') + elif ccver < (10, 0, 0): + warnmsg = ('Using a version of clang older than 10.0 is not ' + 'officially supported and may result in build failures.') conf.flags = ClangFlags() else: warnmsg = f'{cxx} compiler is unsupported'