Archived
1
0
Fork 0

gnu: libclc: Update to 15.0.7.

* gnu/packages/llvm.scm (libclc): Update to 15.0.7.
[source]: Use the llvm-monorepo.
[arguments]: Remove configure-flag for python, add one for llvm-spirv.
Add a phase to skip 2 tests.  Remove trailing #t from phases.
[propagated-inputs]: Add spirv-llvm-translator, spirv-tools.
[native-inputs]: Replace clang-9 with 15, llvm-9 with 15.
[properties]: Add release-monitoring-url.

Change-Id: I06e2e7be0dc5733a2cc17429928b1761ab987906
This commit is contained in:
Efraim Flashner 2023-11-30 12:33:46 +02:00
parent 0bf46a4fc8
commit f4735ccf9b
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -73,6 +73,7 @@
#:use-module (gnu packages pkg-config) #:use-module (gnu packages pkg-config)
#:use-module (gnu packages python) #:use-module (gnu packages python)
#:use-module (gnu packages swig) #:use-module (gnu packages swig)
#:use-module (gnu packages vulkan)
#:use-module (gnu packages xml) #:use-module (gnu packages xml)
#:use-module (srfi srfi-1) #:use-module (srfi srfi-1)
#:use-module (ice-9 match) #:use-module (ice-9 match)
@ -1946,37 +1947,37 @@ standard C++ library.")
(define-public libclc (define-public libclc
(package (package
(name "libclc") (name "libclc")
(version "9.0.1") (version (package-version llvm-15))
(source (source (llvm-monorepo version))
(origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/llvm/llvm-project")
(commit (string-append "llvmorg-" version))))
(file-name (git-file-name name version))
(sha256
(base32
"1d1qayvrvvc1di7s7jfxnjvxq2az4lwq1sw1b2gq2ic0nksvajz0"))))
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:configure-flags (list
(list (string-append "-DLLVM_CLANG=" #:configure-flags
(assoc-ref %build-inputs "clang") #~(list (string-append "-DLLVM_CLANG="
"/bin/clang") (assoc-ref %build-inputs "clang")
(string-append "-DPYTHON=" "/bin/clang")
(assoc-ref %build-inputs "python") (string-append "-DLLVM_SPIRV="
"/bin/python3")) (assoc-ref %build-inputs "spirv-llvm-translator")
#:phases "/bin/llvm-spirv"))
(modify-phases %standard-phases #:phases
(add-after 'unpack 'chdir #~(modify-phases %standard-phases
(lambda _ (chdir "libclc") #t))))) (add-after 'unpack 'enter-subdirectory
(lambda _
(chdir "libclc")))
(add-after 'enter-subdirectory 'skip-clspv-tests
(lambda _
(substitute* "CMakeLists.txt"
(("ptx\\.\\*") "[ptx|clspv].*")))))))
(propagated-inputs
(list spirv-llvm-translator spirv-tools))
(native-inputs (native-inputs
(list clang-9 llvm-9 python)) (list clang-15 llvm-15 python))
(home-page "https://libclc.llvm.org") (home-page "https://libclc.llvm.org")
(synopsis "Libraries for the OpenCL programming language") (synopsis "Libraries for the OpenCL programming language")
(description (description
"This package provides an implementation of the OpenCL library "This package provides an implementation of the OpenCL library
requirements according to version 1.1 of the OpenCL specification.") requirements according to version 1.1 of the OpenCL specification.")
(properties `((release-monitoring-url . ,%llvm-release-monitoring-url)))
;; Apache license 2.0 with LLVM exception ;; Apache license 2.0 with LLVM exception
(license license:asl2.0))) (license license:asl2.0)))