onetbb: build tbbbind (#446169)

This commit is contained in:
Jörg Thalheim
2025-09-26 19:22:02 +02:00
committed by GitHub
+11
View File
@@ -4,7 +4,9 @@
fetchFromGitHub,
fetchpatch,
cmake,
hwloc,
ninja,
pkg-config,
ctestCheckHook,
}:
@@ -55,6 +57,11 @@ stdenv.mkDerivation (finalAttrs: {
cmake
ninja
ctestCheckHook
pkg-config
];
buildInputs = [
hwloc
];
doCheck = true;
@@ -74,6 +81,10 @@ stdenv.mkDerivation (finalAttrs: {
--replace-fail 'tbb_add_test(SUBDIR conformance NAME conformance_resumable_tasks DEPENDENCIES TBB::tbb)' ""
'';
cmakeFlags = [
(lib.cmakeBool "TBB_DISABLE_HWLOC_AUTOMATIC_SEARCH" false)
];
env = {
# Fix build with modern gcc
# In member function 'void std::__atomic_base<_IntTp>::store(__int_type, std::memory_order) [with _ITp = bool]',