git.iko.soy/typeable/nixpkgs
on master help sign in
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.

commit0059131f54c82e7714d458c0b17335c3364033a4 authorAnthony Cowley <acowley@gmail.com> dateFri 28 Apr 2017, 21:30 (10 years ago) parentce6eb0c
2 files changed+27
pkgs/development/compilers/llvm/4/default.nix+2 pkgs/development/compilers/llvm/4/openmp.nix+25
pkgs/development/compilers/llvm/4/default.nix+2
@@ -24,6 +24,8 @@ let
2424
2525 clang = wrapCC self.clang-unwrapped;
2626
27+ openmp = callPackage ./openmp.nix {};
28+
2729 libcxxClang = ccWrapperFun {
2830 cc = self.clang-unwrapped;
2931 isClang = true;
pkgs/development/compilers/llvm/4/openmp.nixnew file+25
@@ -0,0 +1,25 @@
1+{ stdenv
2+, fetch
3+, cmake
4+, zlib
5+, llvm
6+, perl
7+, version
8+}:
9+
10+stdenv.mkDerivation {
11+ name = "openmp-${version}";
12+
13+ src = fetch "openmp" "09kf41zgv551fnv628kqhlwgqkd2bkiwii9gqi6q12djgdddhmfv";
14+
15+ buildInputs = [ cmake llvm perl ];
16+
17+ enableParallelBuilding = true;
18+
19+ meta = {
20+ description = "Components required to build an executable OpenMP program";
21+ homepage = http://openmp.llvm.org/;
22+ license = stdenv.lib.licenses.mit;
23+ platforms = stdenv.lib.platforms.all;
24+ };
25+}