mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-01 07:16:39 +01:00
gnu: Add libclc.
* gnu/packages/llvm.scm (libclc): New variable.
This commit is contained in:
parent
4980b0b5b9
commit
a2cc25ab96
1 changed files with 39 additions and 0 deletions
|
@ -31,6 +31,7 @@ (define-module (gnu packages llvm)
|
||||||
#:use-module (guix packages)
|
#:use-module (guix packages)
|
||||||
#:use-module ((guix licenses) #:prefix license:)
|
#:use-module ((guix licenses) #:prefix license:)
|
||||||
#:use-module (guix download)
|
#:use-module (guix download)
|
||||||
|
#:use-module (guix git-download)
|
||||||
#:use-module (guix utils)
|
#:use-module (guix utils)
|
||||||
#:use-module (guix build-system gnu)
|
#:use-module (guix build-system gnu)
|
||||||
#:use-module (guix build-system cmake)
|
#:use-module (guix build-system cmake)
|
||||||
|
@ -285,6 +286,44 @@ (define-public libcxx
|
||||||
use with Clang, targeting C++11, C++14 and above.")
|
use with Clang, targeting C++11, C++14 and above.")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
|
(define-public libclc
|
||||||
|
(package
|
||||||
|
(name "libclc")
|
||||||
|
(version (package-version llvm))
|
||||||
|
(source
|
||||||
|
(origin
|
||||||
|
(method git-fetch)
|
||||||
|
(uri (git-reference
|
||||||
|
(url "https://github.com/llvm/llvm-project.git")
|
||||||
|
(commit (string-append "llvmorg-" version))))
|
||||||
|
(sha256
|
||||||
|
(base32
|
||||||
|
"052h16wjcnqginzp7ki4il2xmm25v9nyk0wcz7cg03gbryhl7aqa"))))
|
||||||
|
(build-system cmake-build-system)
|
||||||
|
(arguments
|
||||||
|
`(#:configure-flags
|
||||||
|
(list (string-append "-DLLVM_CLANG="
|
||||||
|
(assoc-ref %build-inputs "clang")
|
||||||
|
"/bin/clang")
|
||||||
|
(string-append "-DPYTHON="
|
||||||
|
(assoc-ref %build-inputs "python")
|
||||||
|
"/bin/python3"))
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'chdir
|
||||||
|
(lambda _ (chdir "libclc") #t)))))
|
||||||
|
(native-inputs
|
||||||
|
`(("clang" ,clang)
|
||||||
|
("llvm" ,llvm)
|
||||||
|
("python" ,python)))
|
||||||
|
(home-page "https://libclc.llvm.org")
|
||||||
|
(synopsis "Libraries for the OpenCL programming language")
|
||||||
|
(description
|
||||||
|
"This package provides an implementation of the OpenCL library
|
||||||
|
requirements according to version 1.1 of the OpenCL specification.")
|
||||||
|
;; Apache license 2.0 with LLVM exception
|
||||||
|
(license license:asl2.0)))
|
||||||
|
|
||||||
(define-public libomp
|
(define-public libomp
|
||||||
(package
|
(package
|
||||||
(name "libomp")
|
(name "libomp")
|
||||||
|
|
Loading…
Reference in a new issue