From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: [PATCH 1/2] gnu: Add LLVM variant with RTTI support. Date: Sun, 6 Nov 2016 20:34:23 +0100 Message-ID: <20161106193424.11435-1-rekado@elephly.net> Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40612) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c3TDD-0000Nu-Be for guix-devel@gnu.org; Sun, 06 Nov 2016 14:34:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c3TD8-0007FF-Fm for guix-devel@gnu.org; Sun, 06 Nov 2016 14:34:39 -0500 Received: from sender163-mail.zoho.com ([74.201.84.163]:21346) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c3TD8-0007Dz-7k for guix-devel@gnu.org; Sun, 06 Nov 2016 14:34:34 -0500 List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org * 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") -- 2.10.1