Skip to content

Commit

Permalink
Warn that versions of Protobuf between 3.15.4 and 4 are not buildable…
Browse files Browse the repository at this point in the history
… with clang < 4

This change comes from #4776
  • Loading branch information
floriansimon1 committed Mar 9, 2021
1 parent aa3ca2b commit 8b0f820
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions recipes/protobuf/all/conanfile.py
Expand Up @@ -74,6 +74,11 @@ def configure(self):
if Version(self.settings.compiler.version) < "14":
raise ConanInvalidConfiguration("On Windows Protobuf can only be built with "
"Visual Studio 2015 or higher.")

if self.settings.compiler == "clang":
if tools.Version(self.version) >= "3.15.4" and tools.Version(self.settings.compiler.version) < "4":
raise ConanInvalidConfiguration("protobuf {} doesn't support clang < 4".format(self.version))

def requirements(self):
if self.options.with_zlib:
self.requires("zlib/1.2.11")
Expand Down

0 comments on commit 8b0f820

Please sign in to comment.