guix-commits
[Top][All Lists]
Advanced

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

01/01: gnu: llvm-3.5: Fix build of clang-3.5.


From: Ricardo Wurmus
Subject: 01/01: gnu: llvm-3.5: Fix build of clang-3.5.
Date: Thu, 4 May 2017 08:20:17 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit 6ba4eca234470c2151755b071e8a06c9e4e49b1b
Author: Ricardo Wurmus <address@hidden>
Date:   Thu May 4 14:18:38 2017 +0200

    gnu: llvm-3.5: Fix build of clang-3.5.
    
    * gnu/packages/patches/llvm-3.5-fix-clang-build-with-gcc5.patch: New file
    * gnu/local.mk (dist_patch_DATA): Add it.
    * gnu/packages/llvm.scm (llvm-3.5)[source]: Add patch.
---
 gnu/local.mk                                       |  1 +
 gnu/packages/llvm.scm                              |  2 ++
 .../llvm-3.5-fix-clang-build-with-gcc5.patch       | 35 ++++++++++++++++++++++
 3 files changed, 38 insertions(+)

diff --git a/gnu/local.mk b/gnu/local.mk
index 4c6e8af..ce7ecc3 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -768,6 +768,7 @@ dist_patch_DATA =                                           
\
   %D%/packages/patches/libxt-guix-search-paths.patch           \
   %D%/packages/patches/linux-pam-no-setfsuid.patch             \
   %D%/packages/patches/lirc-localstatedir.patch                        \
+  %D%/packages/patches/llvm-3.5-fix-clang-build-with-gcc5.patch        \
   %D%/packages/patches/llvm-for-extempore.patch                        \
   %D%/packages/patches/lm-sensors-hwmon-attrs.patch            \
   %D%/packages/patches/lua-CVE-2014-5461.patch                      \
diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 04a2b39..52a7846 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -268,6 +268,8 @@ code analysis tools.")
        (method url-fetch)
        (uri (string-append "http://llvm.org/releases/";
                            version "/llvm-" version ".src.tar.xz"))
+       (patches
+        (search-patches "llvm-3.5-fix-clang-build-with-gcc5.patch"))
        (sha256
         (base32
          "0xf5q17kkxsrm2gsi93h4pwlv663kji73r2g4asb97klsmb626a4"))))))
diff --git a/gnu/packages/patches/llvm-3.5-fix-clang-build-with-gcc5.patch 
b/gnu/packages/patches/llvm-3.5-fix-clang-build-with-gcc5.patch
new file mode 100644
index 0000000..faa8252
--- /dev/null
+++ b/gnu/packages/patches/llvm-3.5-fix-clang-build-with-gcc5.patch
@@ -0,0 +1,35 @@
+This patch was downloaded from https://sft.its.cern.ch/jira/browse/ROOT-7047.
+It fixes the build of clang 3.5 with GCC 5.  File paths have been adjusted.
+
+From 00f3ed6eee41da871799ad0fd19153c7682d61fe Mon Sep 17 00:00:00 2001
+From: Alexander Klimov <address@hidden>
+Date: Mon, 26 Jan 2015 18:45:23 +0200
+Subject: [PATCH] [ADT/IntrusiveRefCntPtr] Give friend access to
+ IntrusiveRefCntPtr<X> so the relevant move constructor can
+ access 'Obj'.
+
+From LLVM upstream:
+Author: Argyrios Kyrtzidis <address@hidden>
+Date:   Tue Sep 23 06:06:43 2014 +0000
+git-svn-id: https://llvm.org/svn/llvm-project/llvm/address@hidden 
91177308-0d34-0410-b5e6-96231b3b80d8
+---
+ interpreter/llvm/src/include/llvm/ADT/IntrusiveRefCntPtr.h |    3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/include/llvm/ADT/IntrusiveRefCntPtr.h 
b/include/llvm/ADT/IntrusiveRefCntPtr.h
+index f9df378..c859c98 100644
+--- a/include/llvm/ADT/IntrusiveRefCntPtr.h
++++ b/include/llvm/ADT/IntrusiveRefCntPtr.h
+@@ -197,6 +197,9 @@ public:
+   private:
+     void retain() { if (Obj) IntrusiveRefCntPtrInfo<T>::retain(Obj); }
+     void release() { if (Obj) IntrusiveRefCntPtrInfo<T>::release(Obj); }
++
++    template <typename X>
++    friend class IntrusiveRefCntPtr;
+   };
+ 
+   template<class T, class U>
+-- 
+1.7.10.4
+



reply via email to

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