From 8b0f82031d2dd5099e33bea3cece524f084950f3 Mon Sep 17 00:00:00 2001 From: Florian Date: Tue, 9 Mar 2021 17:55:05 -0500 Subject: [PATCH] Warn that versions of Protobuf between 3.15.4 and 4 are not buildable with clang < 4 This change comes from #4776 --- recipes/protobuf/all/conanfile.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/recipes/protobuf/all/conanfile.py b/recipes/protobuf/all/conanfile.py index 87bbdaca05b98..f34f30dec5d7b 100644 --- a/recipes/protobuf/all/conanfile.py +++ b/recipes/protobuf/all/conanfile.py @@ -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")