Skip to content

Commit

Permalink
(#22971) Qt6 check if we are on C3I CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jcar87 authored Mar 5, 2024
1 parent 9963f7b commit 61a276d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions recipes/qt/6.x.x/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,11 +235,10 @@ def _enablemodule(mod):
setattr(self.options, module, False)

def validate(self):
if os.getenv('NOT_ON_C3I', '0') == '0':
if os.getenv('CONAN_CENTER_BUILD_SERVICE') is not None:
if self.info.settings.compiler == "gcc" and Version(self.info.settings.compiler.version) >= "11" or \
self.info.settings.compiler == "clang" and Version(self.info.settings.compiler.version) >= "12":
raise ConanInvalidConfiguration("qt is not supported on gcc11 and clang >= 12 on C3I until conan-io/conan-center-index#13472 is fixed\n"\
"If your distro is modern enough (xcb >= 1.12), set environment variable NOT_ON_C3I=1")
raise ConanInvalidConfiguration("qt is not supported on gcc11 and clang >= 12 on C3I until conan-io/conan-center-index#13472 is fixed")

# C++ minimum standard required
if self.settings.compiler.get_safe("cppstd"):
Expand Down

0 comments on commit 61a276d

Please sign in to comment.