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:
parent
ce6eb0cbbe
commit
0059131f54
|
@ -24,6 +24,8 @@ let
|
|||
|
||||
clang = wrapCC self.clang-unwrapped;
|
||||
|
||||
openmp = callPackage ./openmp.nix {};
|
||||
|
||||
libcxxClang = ccWrapperFun {
|
||||
cc = self.clang-unwrapped;
|
||||
isClang = true;
|
||||
|
|
25
pkgs/development/compilers/llvm/4/openmp.nix
Normal file
25
pkgs/development/compilers/llvm/4/openmp.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue