Unverified Commit 5779a716 authored by Jörg Thalheim's avatar Jörg Thalheim Committed by GitHub
Browse files

onetbb: build tbbbind (#446169)

parents 1af70b1d 666a42cd
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -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]',