Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
(conan-io#14734) qt6: allow gcc11 and clang12 consumers
Browse files Browse the repository at this point in the history
* qt6: allow gcc11 and clang12 consumers

* fixup

* re-fixup
  • Loading branch information
ericLemanissier authored Dec 16, 2022
1 parent 9d67090 commit 189c5e3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions recipes/qt/6.x.x/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,11 @@ def _enablemodule(mod):
_enablemodule(module)

def validate(self):
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")
if os.getenv('NOT_ON_C3I', '0') == '0':
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")

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

0 comments on commit 189c5e3

Please sign in to comment.