Commit a8990441 authored by John Ericson's avatar John Ericson
Browse files

tbb_{2021_11,2022_0}: Fix build on Windows

parent 3b83d457
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -36,6 +36,11 @@ stdenv.mkDerivation rec {
    })
  ];

  cmakeFlags = [
    # Skip tests to work around https://github.com/uxlfoundation/oneTBB/issues/1695
    (lib.cmakeBool "TBB_TEST" (!stdenv.hostPlatform.isWindows))
  ];

  # Fix build with modern gcc
  # In member function 'void std::__atomic_base<_IntTp>::store(__int_type, std::memory_order) [with _ITp = bool]',
  NIX_CFLAGS_COMPILE =
@@ -77,7 +82,7 @@ stdenv.mkDerivation rec {
      represents a higher-level, task-based parallelism that abstracts platform
      details and threading mechanisms for scalability and performance.
    '';
    platforms = platforms.unix;
    platforms = platforms.unix ++ platforms.windows;
    maintainers = with maintainers; [
      thoughtpolice
      tmarkus
+16 −1
Original line number Diff line number Diff line
@@ -34,6 +34,21 @@ stdenv.mkDerivation rec {
      url = "https://patch-diff.githubusercontent.com/raw/oneapi-src/oneTBB/pull/899.patch";
      hash = "sha256-kU6RRX+sde0NrQMKlNtW3jXav6J4QiVIUmD50asmBPU=";
    })
    (fetchpatch {
      name = "fix-tbb-mingw-compile.patch";
      url = "https://patch-diff.githubusercontent.com/raw/oneapi-src/oneTBB/pull/1361.patch";
      hash = "sha256-jVa4HQetZv0vImdv549MyTy6/8t9dy8m6YAmjPGNQ18=";
    })
    (fetchpatch {
      name = "fix-tbb-mingw-link.patch";
      url = "https://patch-diff.githubusercontent.com/raw/oneapi-src/oneTBB/pull/1193.patch";
      hash = "sha256-ZQbwUmuIZoGVBof8QNR3V8vU385e2X7EvU3+Fbj4+M8=";
    })
  ];

  cmakeFlags = [
    # Skip tests to work around https://github.com/uxlfoundation/oneTBB/issues/1695
    (lib.cmakeBool "TBB_TEST" (!stdenv.hostPlatform.isWindows))
  ];

  # Fix build with modern gcc
@@ -77,7 +92,7 @@ stdenv.mkDerivation rec {
      represents a higher-level, task-based parallelism that abstracts platform
      details and threading mechanisms for scalability and performance.
    '';
    platforms = platforms.unix;
    platforms = platforms.unix ++ platforms.windows;
    maintainers = with maintainers; [
      thoughtpolice
      tmarkus