summaryrefslogtreecommitdiff
path: root/gnu/packages/llvm.scm
diff options
context:
space:
mode:
authorMarius Bakke <marius@gnu.org>2021-09-22 22:24:25 +0200
committerMarius Bakke <marius@gnu.org>2021-09-23 12:05:53 +0200
commit33783d9009cb6f5b9cfa433822037e28ca9c9a00 (patch)
treeda2ffd5f59163b7220d6150b6d8ee0c0b7c1b27b /gnu/packages/llvm.scm
parent855e34d44f02c80850434be12714726385e47dc3 (diff)
gnu: Add libunwind-headers.
* gnu/packages/llvm.scm (libunwind-headers): New public variable.
Diffstat (limited to 'gnu/packages/llvm.scm')
-rw-r--r--gnu/packages/llvm.scm28
1 files changed, 28 insertions, 0 deletions
diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index de964b020d..5bb521b95f 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -918,6 +918,34 @@ of programming tools as well as libraries with equivalent functionality.")
,@(package-properties llvm-12)))))
+
+(define-public libunwind-headers
+ (package
+ (name "libunwind-headers")
+ (version "12.0.1")
+ (source (origin
+ (method url-fetch)
+ (uri (llvm-uri "libunwind" version))
+ (sha256
+ (base32
+ "192ww6n81lj2mb9pj4043z79jp3cf58a9c2qrxjwm5c3a64n1shb"))))
+ (build-system cmake-build-system)
+ (arguments
+ '(#:phases (modify-phases (map (lambda (phase)
+ (assq phase %standard-phases))
+ '(set-paths unpack))
+ (add-after 'unpack 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (mkdir out)
+ (copy-recursively "include"
+ (string-append out "/include"))))))))
+ (home-page "https://clang.llvm.org/docs/Toolchain.html")
+ (synopsis "LLVM libunwind header files")
+ (description
+ "This package contains header files for the LLVM C++ unwinding library.")
+ (license license:asl2.0))) ;with LLVM exceptions
+
(define-public lld
(package
(name "lld")