Skip to content

Commit

Permalink
Check that the compiler version is compatible with the software
Browse files Browse the repository at this point in the history
  • Loading branch information
tcanabrava committed Aug 2, 2021
1 parent be9040c commit 3b76c4b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions recipes/llvm/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,10 @@ def package(self):
else:
shutil.rmtree(ignore_path)

def validate(self):
if self.settings.compiler == "gcc" and self.settings.compiler.version < "5.1":
raise ConanInvalidConfiguration("Compiler version too low for this package.")

def package_info(self):
self.cpp_info.libs = tools.collect_libs(self)
self.cpp_info.builddirs = ['lib/cmake']

0 comments on commit 3b76c4b

Please sign in to comment.