guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/02: gnu: Add LLVM variant with RTTI support.


From: Ricardo Wurmus
Subject: 01/02: gnu: Add LLVM variant with RTTI support.
Date: Tue, 8 Nov 2016 20:01:29 +0000 (UTC)

rekado pushed a commit to branch master
in repository guix.

commit 83c49858b518b98f88db5f50ce36c19084e7ad62
Author: Ricardo Wurmus <address@hidden>
Date:   Sun Nov 6 17:25:52 2016 +0100

    gnu: Add LLVM variant with RTTI support.
    
    * gnu/packages/llvm.scm (llvm-with-rtti): New variable.
---
 gnu/packages/llvm.scm |   11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 1a1f7ee..96679bf 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -85,6 +85,17 @@ languages is in development.  The compiler infrastructure 
includes mirror sets
 of programming tools as well as libraries with equivalent functionality.")
     (license license:ncsa)))
 
+(define-public llvm-with-rtti
+  (package (inherit llvm)
+    (name "llvm-with-rtti")
+    (arguments
+     (substitute-keyword-arguments (package-arguments llvm)
+       ((#:configure-flags flags)
+        `(append '("-DCMAKE_SKIP_BUILD_RPATH=FALSE"
+                   "-DCMAKE_BUILD_WITH_INSTALL_RPATH=FALSE"
+                   "-DLLVM_REQUIRES_RTTI=1")
+                 ,flags))))))
+
 (define (clang-runtime-from-llvm llvm hash)
   (package
     (name "clang-runtime")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]