Skip to content

Commit

Permalink
MeTee: conan: support higher version of the Linux compilers
Browse files Browse the repository at this point in the history
Support up to gcc 12 and up to clang 15

Signed-off-by: Tomas Winkler <[email protected]>
  • Loading branch information
Tomas Winkler authored and ausyskin committed Feb 26, 2024
1 parent e661504 commit 26e2bd4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions conanfile.py
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"))
Expand Down

0 comments on commit 26e2bd4

Please sign in to comment.