From 26e2bd455261d99e5f9bc863697c609c8bf5c8d2 Mon Sep 17 00:00:00 2001 From: Tomas Winkler Date: Mon, 16 Jan 2023 16:47:26 +0200 Subject: [PATCH] MeTee: conan: support higher version of the Linux compilers Support up to gcc 12 and up to clang 15 Signed-off-by: Tomas Winkler --- conanfile.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/conanfile.py b/conanfile.py index c3455c4..48f483d 100644 --- a/conanfile.py +++ b/conanfile.py @@ -1,5 +1,5 @@ # SPDX-License-Identifier: Apache-2.0 -# Copyright (C) 2020-2022 Intel Corporation +# Copyright (C) 2020-2023 Intel Corporation from conans import ConanFile, CMake, tools from conans.tools import load from conans.model.version import Version @@ -21,10 +21,10 @@ def configure(self): def package_id(self): v = Version(str(self.settings.compiler.version)) - if self.settings.compiler == "gcc" and (v >= "6" and v <= "11"): - self.info.settings.compiler.version = "GCC version between 6 and 11" - if self.settings.compiler == "clang" and (v >= "6" and v <= "11"): - self.info.settings.compiler.version = "clang version between 6 and 11" + if self.settings.compiler == "gcc" and (v >= "6" and v <= "12"): + self.info.settings.compiler.version = "GCC version between 6 and 12" + if self.settings.compiler == "clang" and (v >= "6" and v <= "15"): + self.info.settings.compiler.version = "clang version between 6 and 15" def set_version(self): content = load(os.path.join(self.recipe_folder, "VERSION"))