diff options
author | Evan Wallace <mankarse.git@alethrea.net> | 2017-10-29 05:21:30 +0000 |
---|---|---|
committer | Evan Wallace <mankarse.git@alethrea.net> | 2017-10-29 05:21:30 +0000 |
commit | 49e66285b2795433dcf91f05ff884e6cd78bf2f7 (patch) | |
tree | 5d8b732af39fbcf39b34bae4c2a1f192a29505e6 /pkgs/development/libraries/tbb | |
parent | 2ede55a37b1b6c93cd776ec4032458e656dfd70a (diff) |
tbb: clang support
Added compiler and stdver parameters, to support non-gcc compilers, and enable
perfect exception forwarding (std::exception_ptr) on platforms where C++11 is not enabled by default
Diffstat (limited to 'pkgs/development/libraries/tbb')
-rw-r--r-- | pkgs/development/libraries/tbb/default.nix | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/development/libraries/tbb/default.nix b/pkgs/development/libraries/tbb/default.nix index b8aedd46096b..13b1970866e7 100644 --- a/pkgs/development/libraries/tbb/default.nix +++ b/pkgs/development/libraries/tbb/default.nix @@ -1,6 +1,6 @@ -{ stdenv, fetchFromGitHub }: +{ stdenv, fetchFromGitHub, compiler ? if stdenv.cc.isClang then "clang" else null, stdver ? null }: -stdenv.mkDerivation rec { +with stdenv.lib; stdenv.mkDerivation rec { name = "tbb-${version}"; version = "2018_U1"; @@ -11,6 +11,11 @@ stdenv.mkDerivation rec { sha256 = "1lygz07va6hsv2vlx9zwz5d2n81rxsdhmh0pqxgj8n1bvb1rp0qw"; }; + makeFlags = concatStringsSep " " ( + optional (compiler != null) "compiler=${compiler}" ++ + optional (stdver != null) "stdver=${stdver}" + ); + installPhase = '' mkdir -p $out/{lib,share/doc} cp "build/"*release*"/"*${stdenv.hostPlatform.extensions.sharedLibrary}* $out/lib/ @@ -21,7 +26,7 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; - meta = with stdenv.lib; { + meta = { description = "Intel Thread Building Blocks C++ Library"; homepage = "http://threadingbuildingblocks.org/"; license = licenses.asl20; |