Skip to content

Commit

Permalink
(#25361) onetbb: disable tbbind for Apple non-macOS
Browse files Browse the repository at this point in the history
* disable tbbind for Apple non-macOS

hwloc can't be built for these platforms

* Update recipes/onetbb/all/conanfile.py

Co-authored-by: Martin Valgur <[email protected]>

* Update recipes/onetbb/all/conanfile.py

Co-authored-by: Martin Valgur <[email protected]>

---------

Co-authored-by: Abril Rincón Blanco <[email protected]>
Co-authored-by: Martin Valgur <[email protected]>
  • Loading branch information
3 people authored Sep 24, 2024
1 parent 26c75f6 commit f834197
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion recipes/onetbb/all/conanfile.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from conan import ConanFile
from conan.errors import ConanInvalidConfiguration
from conan.tools.apple import is_apple_os
from conan.tools.build import cross_building
from conan.tools.cmake import CMake, CMakeToolchain, cmake_layout
from conan.tools.env import VirtualBuildEnv
Expand Down Expand Up @@ -52,7 +53,9 @@ def _tbbbind_hwloc_version(self):

@property
def _tbbbind_supported(self):
return self.settings.os != "Macos" or Version(self.version) >= "2021.11.0"
if is_apple_os(self):
return self.settings.os == "Macos" and Version(self.version) >= "2021.11.0"
return True

@property
def _tbbbind_build(self):
Expand Down

0 comments on commit f834197

Please sign in to comment.