Skip to content

Commit

Permalink
lightgbm: revert llvm-openmp to 12 on apple-clang
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Nov 18, 2023
1 parent 28d04ee commit cf26ee1
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions recipes/lightgbm/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,11 @@ def requirements(self):
self.requires("eigen/3.4.0")
self.requires("fast_double_parser/0.7.0", transitive_headers=True, transitive_libs=True)
self.requires("fmt/10.1.1", transitive_headers=True, transitive_libs=True)
if self.options.with_openmp and self.settings.compiler in ["clang", "apple-clang"]:
self.requires("llvm-openmp/17.0.4", transitive_headers=True, transitive_libs=True)
if self.options.with_openmp:
if self.settings.compiler == "clang":
self.requires("llvm-openmp/17.0.4", transitive_headers=True, transitive_libs=True)
elif self.settings.compiler == "apple-clang":
self.requires("llvm-openmp/12.0.1", transitive_headers=True, transitive_libs=True)

def validate(self):
if self.settings.compiler.get_safe("cppstd"):
Expand Down

0 comments on commit cf26ee1

Please sign in to comment.