gnu: make-lld-wrapper: Inherit version, license and home-page from LLD.

* gnu/packages/llvm.scm (make-lld-wrapper): Inherit from the provided LLD.
This commit is contained in:
Marius Bakke 2022-11-19 16:27:17 +01:00
parent a8ca5d0114
commit cd9161372a
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -1592,14 +1592,16 @@ components which highly leverage existing libraries in the larger LLVM Project."
"Return a LLD wrapper. When LLD-AS-LD? is true, create a 'ld' symlink that "Return a LLD wrapper. When LLD-AS-LD? is true, create a 'ld' symlink that
points to 'lld'." points to 'lld'."
(package (package
(inherit lld)
(name (if lld-as-ld? "lld-as-ld-wrapper" "lld-wrapper")) (name (if lld-as-ld? "lld-as-ld-wrapper" "lld-wrapper"))
(version "0")
(source #f) (source #f)
(build-system trivial-build-system) (native-inputs '())
(inputs (list (make-ld-wrapper "ld.lld-wrapper" #:binutils lld (inputs (list (make-ld-wrapper "ld.lld-wrapper" #:binutils lld
#:linker "ld.lld") #:linker "ld.lld")
(make-ld-wrapper "lld-wrapper" #:binutils lld #:linker (make-ld-wrapper "lld-wrapper" #:binutils lld #:linker
"lld"))) "lld")))
(propagated-inputs '())
(build-system trivial-build-system)
(arguments (arguments
(list #:builder (list #:builder
#~(let ((ld.lld (string-append #$(this-package-input #~(let ((ld.lld (string-append #$(this-package-input
@ -1616,9 +1618,7 @@ points to 'lld'."
(synopsis "LLD linker wrapper") (synopsis "LLD linker wrapper")
(description "This is a linker wrapper for LLD; like @code{ld-wrapper}, it (description "This is a linker wrapper for LLD; like @code{ld-wrapper}, it
wraps the linker to add any missing @code{-rpath} flags, and to detect any wraps the linker to add any missing @code{-rpath} flags, and to detect any
misuse of libraries outside of the store.") misuse of libraries outside of the store.")))
(home-page "https://www.gnu.org/software/guix/")
(license license:gpl3+)))
;;; A LLD wrapper suitable to use with -fuse-ld and GCC or with Clang. ;;; A LLD wrapper suitable to use with -fuse-ld and GCC or with Clang.
(define-public lld-wrapper (define-public lld-wrapper