diff options
author | Anthony Cowley <acowley@gmail.com> | 2017-04-28 21:30:55 -0400 |
---|---|---|
committer | Anthony Cowley <acowley@gmail.com> | 2017-04-28 21:30:55 -0400 |
commit | 0059131f54c82e7714d458c0b17335c3364033a4 (patch) | |
tree | df4d62ebbbc17d909f2d666cada7f96a643130e8 /pkgs/development/compilers/llvm | |
parent | ce6eb0cbbe5398329a490b54dc2d259d9d48007b (diff) | |
download | nixlib-0059131f54c82e7714d458c0b17335c3364033a4.tar nixlib-0059131f54c82e7714d458c0b17335c3364033a4.tar.gz nixlib-0059131f54c82e7714d458c0b17335c3364033a4.tar.bz2 nixlib-0059131f54c82e7714d458c0b17335c3364033a4.tar.lz nixlib-0059131f54c82e7714d458c0b17335c3364033a4.tar.xz nixlib-0059131f54c82e7714d458c0b17335c3364033a4.tar.zst nixlib-0059131f54c82e7714d458c0b17335c3364033a4.zip |
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.
Diffstat (limited to 'pkgs/development/compilers/llvm')
-rw-r--r-- | pkgs/development/compilers/llvm/4/default.nix | 2 | ||||
-rw-r--r-- | pkgs/development/compilers/llvm/4/openmp.nix | 25 |
2 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/development/compilers/llvm/4/default.nix b/pkgs/development/compilers/llvm/4/default.nix index 4be621adb5cf..15918f9c1ebd 100644 --- a/pkgs/development/compilers/llvm/4/default.nix +++ b/pkgs/development/compilers/llvm/4/default.nix @@ -24,6 +24,8 @@ let clang = wrapCC self.clang-unwrapped; + openmp = callPackage ./openmp.nix {}; + libcxxClang = ccWrapperFun { cc = self.clang-unwrapped; isClang = true; diff --git a/pkgs/development/compilers/llvm/4/openmp.nix b/pkgs/development/compilers/llvm/4/openmp.nix new file mode 100644 index 000000000000..c8ba770e2411 --- /dev/null +++ b/pkgs/development/compilers/llvm/4/openmp.nix @@ -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; + }; +} |