gnu: llvm-for-rocm: Inherit from llvm-14

* gnu/packages/llvm.scm (llvm-for-rocm)[arguments]: Inherit from llvm-14
instead of llvm-12 and use g-exp for #:configure-flags.
This commit is contained in:
Lars-Dominik Braun 2022-06-28 12:26:23 +02:00
parent b7c99f2b88
commit 453b0670a6
No known key found for this signature in database
GPG key ID: F663943E08D8092A

View file

@ -1158,14 +1158,9 @@ (define-public llvm-for-rocm
(search-patches "llvm-roc-5.0.0-linkdl.patch"
"llvm-roc-4.0.0-remove-isystem-usr-include.patch"))))
(arguments
(substitute-keyword-arguments (package-arguments llvm-12)
((#:phases phases '%standard-phases)
`(modify-phases ,phases
(add-after 'unpack 'chdir
(lambda _
(chdir "llvm")))))
(substitute-keyword-arguments (package-arguments llvm-14)
((#:configure-flags flags)
''("-DLLVM_ENABLE_PROJECTS=llvm;clang;lld"
#~(list"-DLLVM_ENABLE_PROJECTS=llvm;clang;lld"
"-DLLVM_TARGETS_TO_BUILD=AMDGPU;X86"
"-DCMAKE_SKIP_BUILD_RPATH=FALSE"
"-DCMAKE_BUILD_WITH_INSTALL_RPATH=FALSE"