1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-25 07:00:43 +00:00

llvm: Add the LLVM OpenMP components

Needed to build an executable that uses OpenMP with clang. This
includes a header file and a library that clang will link into an
executable whose source makes use of ‘omp‘ pragmas.
This commit is contained in:
Anthony Cowley 2017-04-28 21:30:55 -04:00
parent ce6eb0cbbe
commit 0059131f54
2 changed files with 27 additions and 0 deletions

View file

@ -24,6 +24,8 @@ let
clang = wrapCC self.clang-unwrapped;
openmp = callPackage ./openmp.nix {};
libcxxClang = ccWrapperFun {
cc = self.clang-unwrapped;
isClang = true;

View file

@ -0,0 +1,25 @@
{ stdenv
, fetch
, cmake
, zlib
, llvm
, perl
, version
}:
stdenv.mkDerivation {
name = "openmp-${version}";
src = fetch "openmp" "09kf41zgv551fnv628kqhlwgqkd2bkiwii9gqi6q12djgdddhmfv";
buildInputs = [ cmake llvm perl ];
enableParallelBuilding = true;
meta = {
description = "Components required to build an executable OpenMP program";
homepage = http://openmp.llvm.org/;
license = stdenv.lib.licenses.mit;
platforms = stdenv.lib.platforms.all;
};
}