gnu: LLVM: Support release candidates as version.
* gnu/packages/llvm.scm (llvm-uri, clang-from-llvm): Support release candidates as version. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
ed26d2ec6c
commit
d76cfc92da
1 changed files with 4 additions and 2 deletions
|
@ -100,8 +100,10 @@ (define* (system->llvm-target #:optional
|
|||
("i586" => "X86"))))
|
||||
|
||||
(define (llvm-uri component version)
|
||||
;; LLVM release candidate file names are formatted 'tool-A.B.C-rcN/tool-A.B.CrcN.src.tar.xz'
|
||||
;; so we specify the version as A.B.C-rcN and delete the hyphen when referencing the file name.
|
||||
(string-append "https://github.com/llvm/llvm-project/releases/download"
|
||||
"/llvmorg-" version "/" component "-" version ".src.tar.xz"))
|
||||
"/llvmorg-" version "/" component "-" (string-delete #\- version) ".src.tar.xz"))
|
||||
|
||||
(define %llvm-release-monitoring-url
|
||||
"https://github.com/llvm/llvm-project/releases")
|
||||
|
@ -224,7 +226,7 @@ (define* (clang-from-llvm llvm clang-runtime hash
|
|||
(invoke "tar" "xf" extra)
|
||||
(rename-file ,(string-append
|
||||
"clang-tools-extra-"
|
||||
(package-version llvm)
|
||||
(string-delete #\- (package-version llvm))
|
||||
".src")
|
||||
"tools/extra")
|
||||
#t)))
|
||||
|
|
Loading…
Reference in a new issue