~ruther/guix-local

3dc53ee3e70bd109978548bd43f26386f5c93582 — Andreas Enge 6 months ago b08fea7
gnu: Remove llvm-3.5.

* gnu/packages/llvm.scm (llvm-3.5): Delete variable.
* gnu/packages/patches/llvm-3.5-fix-clang-build-with-gcc5.patch:
Delete file.
* gnu/packages/llvm.scm (dist_patch_DATA): Unregister file.

Fixes: guix/guix#2100
Change-Id: I60dffaa5eb7f662994daefa84cd49dac5243c4c4
2 files changed, 0 insertions(+), 62 deletions(-)

M gnu/packages/llvm.scm
D gnu/packages/patches/llvm-3.5-fix-clang-build-with-gcc5.patch
M gnu/packages/llvm.scm => gnu/packages/llvm.scm +0 -27
@@ 1082,33 1082,6 @@ Library.")
                        (string-append (getcwd) "/lib"))))
            (delete 'install-opt-viewer)))))))

(define-public llvm-3.5
  (package (inherit llvm-6)
    (version "3.5.2")
    (source
     (origin
       (method url-fetch)
       (uri (llvm-uri "llvm" version))
       (patches
        (search-patches "llvm-3.5-fix-clang-build-with-gcc5.patch"))
       (sha256
        (base32
         "0xf5q17kkxsrm2gsi93h4pwlv663kji73r2g4asb97klsmb626a4"))))
    (outputs '("out"))
    (arguments
     (substitute-keyword-arguments (package-arguments llvm-6)
       ((#:phases phases)
        #~(modify-phases #$phases
            (add-before 'build 'shared-lib-workaround
              ;; Even with CMAKE_SKIP_BUILD_RPATH=FALSE, llvm-tblgen
              ;; doesn't seem to get the correct rpath to be able to run
              ;; from the build directory.  Set LD_LIBRARY_PATH as a
              ;; workaround.
              (lambda _
                (setenv "LD_LIBRARY_PATH"
                        (string-append (getcwd) "/lib"))))
            (delete 'install-opt-viewer)))))))

(define-public llvm-16
  (make-llvm "16.0.6"))


D gnu/packages/patches/llvm-3.5-fix-clang-build-with-gcc5.patch => gnu/packages/patches/llvm-3.5-fix-clang-build-with-gcc5.patch +0 -35
@@ 1,35 0,0 @@
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 <alserkli@inbox.ru>
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 <akyrtzi@gmail.com>
Date:   Tue Sep 23 06:06:43 2014 +0000
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@218295 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