[PATCH] gnu: Add libcxx.

  • Done
  • quality assurance status badge
Details
3 participants
  • Ludovic Courtès
  • Ricardo Wurmus
  • Ricardo Wurmus
Owner
unassigned
Submitted by
Ricardo Wurmus
Severity
normal
R
R
Ricardo Wurmus wrote on 12 Nov 2018 15:43
(address . guix-patches@gnu.org)(name . Ricardo Wurmus)(address . ricardo.wurmus@mdc-berlin.de)
20181112144339.13902-1-ricardo.wurmus@mdc-berlin.de
* gnu/packages/llvm.scm (libcxx): New variable.
---
gnu/packages/llvm.scm | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)

Toggle diff (36 lines)
diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index a809180e2..848d7fde2 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -231,6 +231,29 @@ project includes the Clang front end, the Clang static analyzer, and several
code analysis tools.")
(license license:ncsa)))
+(define-public libcxx
+ (package
+ (name "libcxx")
+ (version (package-version llvm))
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "http://llvm.org/releases/"
+ version "/libcxx-" version ".src.tar.xz"))
+ (sha256
+ (base32
+ "0rzw4qvxp6qx4l4h9amrq02gp7hbg8lw4m0sy3k60f50234gnm3n"))))
+ (build-system cmake-build-system)
+ (native-inputs
+ `(("clang" ,clang)
+ ("llvm" ,llvm)))
+ (home-page "https://libcxx.llvm.org")
+ (synopsis "C++ standard library")
+ (description
+ "This package provides an implementation of the C++ standard library,
+targeting C++11, C++14 and above.")
+ (license license:expat)))
+
(define-public clang-runtime
(clang-runtime-from-llvm
llvm
--
2.19.0
L
L
Ludovic Courtès wrote on 16 Nov 2018 23:01
(name . Ricardo Wurmus)(address . ricardo.wurmus@mdc-berlin.de)(address . 33353@debbugs.gnu.org)
87muq8r8b9.fsf@gnu.org
Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> skribis:

Toggle quote (2 lines)
> * gnu/packages/llvm.scm (libcxx): New variable.

[...]

Toggle quote (4 lines)
> + (home-page "https://libcxx.llvm.org")
> + (synopsis "C++ standard library")
> + (description
> + "This package provides an implementation of the C++ standard library,
^
Maybe add: “for use with Clang”.

Otherwise LGTM, thanks!

Ludo’.
R
R
Ricardo Wurmus wrote on 17 Feb 2019 10:03
control message for bug #33353
(address . control@debbugs.gnu.org)
168fab1dc8b.5c671e30-349417054.-5389295549044657287@zoho.com
tags 33353 fixed
close 33353
?