* Add LLVM, clang and clang-runtime-3.8 to GNU Guix
@ 2016-05-26 19:29 Dennis Mungai
0 siblings, 0 replies; only message in thread
From: Dennis Mungai @ 2016-05-26 19:29 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 122 bytes --]
Hello there,
The attached patch adds LLVM, clang and clang-runtime-3.8 to GNU Guix.
Thanks and regards,
Dennis Mungai.
[-- Attachment #2: add-llvm-3.8.patch --]
[-- Type: text/x-patch, Size: 2165 bytes --]
--- llvm.scm 2016-05-18 18:39:48.608015042 +0300
+++ llvms.scm 2016-05-26 22:24:39.282628815 +0300
@@ -2,6 +2,9 @@
;;; Copyright © 2014 Eric Bavier <bavier@member.fsf.org>
;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
;;; Copyright © 2015 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2016 Dennis Mungai <dmngaie@gmail.com>
+;;; Copyright © 2016 Pjotr Prins <pjotr.public12@thebird.nl>
+;;; Copyright © 2016 Roel Janssen <roel@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -21,6 +24,8 @@
(define-module (gnu packages llvm)
#:use-module (guix packages)
#:use-module (guix licenses)
+ #:use-module (gnu packages compression)
+ #:use-module (gnu packages libffi)
#:use-module (guix download)
#:use-module (guix utils)
#:use-module (guix build-system gnu)
@@ -201,3 +206,37 @@
(define-public clang-3.5
(clang-from-llvm llvm-3.5 clang-runtime-3.5
"12yv3jwdjcbkrx7zjm8wh4jrvb59v8fdw4mnmz3zc1jb00p9k07w"))
+
+(define-public llvm-3.8
+ (package (inherit llvm)
+ (version "3.8.0")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append "http://llvm.org/releases/"
+ version "/llvm-" version ".src.tar.xz"))
+ (sha256
+ (base32
+ "0ikfq0gxac8xpvxj23l4hk8f12ydx48fljgrz1gl9xp0ks704nsm"))))
+ (native-inputs
+ `(("python" ,python-wrapper)
+ ("perl" ,perl)
+ ("libffi" ,libffi)
+ ("zlib" ,zlib)))
+ (arguments
+ `(#:configure-flags '("-DCMAKE_SKIP_BUILD_RPATH=FALSE"
+ "-DCMAKE_BUILD_WITH_INSTALL_RPATH=FALSE"
+ "-DLLVM_ENABLE_PIC=ON"
+ ;"-DLLVM_ENABLE_RTTI=ON"
+ "-DLLVM_ENABLE_WERROR=OFF"
+ ;;"-DLLVM_REQUIRES_RTTI=ON"
+ )))))
+
+(define-public clang-runtime-3.8
+ (clang-runtime-from-llvm
+ llvm-3.8
+ "1c2nkp9563873ffz22qmhc0wakgj428pch8rmhym8agjamz3ily8"))
+
+(define-public clang-3.8
+ (clang-from-llvm llvm-3.8 clang-runtime-3.8
+ "1ybcac8hlr9vl3wg8s4v6cp0c0qgqnwprsv85lihbkq3vqv94504"))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-05-26 19:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-05-26 19:29 Add LLVM, clang and clang-runtime-3.8 to GNU Guix Dennis Mungai
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).