mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 22:38:07 -05:00
gnu: Add clang-runtime-15.
* gnu/packages/llvm.scm (clang-runtime-15): New variable.
This commit is contained in:
parent
bf741cdd27
commit
52c1f5c825
1 changed files with 23 additions and 0 deletions
|
@ -674,6 +674,29 @@ (define-public llvm-14
|
||||||
`(("python" ,python-wrapper)
|
`(("python" ,python-wrapper)
|
||||||
("perl" ,perl)))))
|
("perl" ,perl)))))
|
||||||
|
|
||||||
|
(define-public clang-runtime-15
|
||||||
|
(let ((template (clang-runtime-from-llvm llvm-15)))
|
||||||
|
(package
|
||||||
|
(inherit template)
|
||||||
|
(arguments
|
||||||
|
(substitute-keyword-arguments (package-arguments template)
|
||||||
|
((#:phases phases '(@ (guix build cmake-build-system) %standard-phases))
|
||||||
|
#~(modify-phases #$phases
|
||||||
|
(add-after 'unpack 'change-directory
|
||||||
|
(lambda _
|
||||||
|
(chdir "compiler-rt")))
|
||||||
|
(add-after 'install 'delete-static-libraries
|
||||||
|
;; Reduce size from 33 MiB to 7.4 MiB.
|
||||||
|
(lambda _
|
||||||
|
(for-each delete-file
|
||||||
|
(find-files #$output "\\.a(\\.syms)?$"))))))))
|
||||||
|
(native-inputs
|
||||||
|
(modify-inputs (package-native-inputs template)
|
||||||
|
(prepend gcc-12))) ;libfuzzer fails to build with GCC 11
|
||||||
|
(inputs
|
||||||
|
(modify-inputs (package-inputs template)
|
||||||
|
(append libffi))))))
|
||||||
|
|
||||||
(define-public clang-runtime-14
|
(define-public clang-runtime-14
|
||||||
(let ((template (clang-runtime-from-llvm llvm-14)))
|
(let ((template (clang-runtime-from-llvm llvm-14)))
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Reference in a new issue