[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/10: gnu: clang@13: Install CFI ignorelist.
From: |
guix-commits |
Subject: |
05/10: gnu: clang@13: Install CFI ignorelist. |
Date: |
Sat, 8 Jan 2022 06:03:25 -0500 (EST) |
mbakke pushed a commit to branch master
in repository guix.
commit e85e59562859108367828ba7340c318483977ea3
Author: Marius Bakke <marius@gnu.org>
AuthorDate: Fri Jan 7 18:53:42 2022 +0100
gnu: clang@13: Install CFI ignorelist.
* gnu/packages/llvm.scm (clang-from-llvm)[arguments]: Adjust
symlink-cfi_blacklist phase to work with the renamed "ignorelist" in
clang-runtime@13. Rename phase to match.
* gnu/packages/llvm.scm (clang-13)[arguments]: Remove.
---
gnu/packages/llvm.scm | 52 ++++++++++++++++++++++-----------------------------
1 file changed, 22 insertions(+), 30 deletions(-)
diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 178b92a0fb..9702aca896 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -364,26 +364,28 @@ given PATCHES. When TOOLS-EXTRA is given, it must point
to the
#t))))
'())
,@(if (version>? version "3.8")
- `((add-after 'install 'symlink-cfi_blacklist
+ `((add-after 'install 'symlink-cfi_ignorelist
(lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(lib-share (string-append out
"/lib/clang/"
,version
"/share"))
(compiler-rt (assoc-ref inputs
"clang-runtime"))
+ (file-name ,(if (version>=? version "13")
+ "cfi_ignorelist.txt"
+ "cfi_blacklist.txt"))
;; The location varies between Clang
versions.
- (cfi-blacklist
+ (cfi-ignorelist
(cond
((file-exists?
- (string-append compiler-rt
"/cfi_blacklist.txt"))
- (string-append compiler-rt
"/cfi_blacklist.txt"))
+ (string-append compiler-rt "/"
file-name))
+ (string-append compiler-rt "/"
file-name))
(else (string-append compiler-rt
-
"/share/cfi_blacklist.txt")))))
+ "/share/"
file-name)))))
(mkdir-p lib-share)
- ;; Symlink cfi_blacklist.txt to where Clang
expects
+ ;; Symlink the ignorelist to where Clang
expects
;; to find it.
- (symlink cfi-blacklist
- (string-append lib-share
"/cfi_blacklist.txt"))
- #t))))
+ (symlink cfi-ignorelist
+ (string-append lib-share "/"
file-name))))))
'())
(add-after 'install 'install-clean-up-/share/clang
(lambda* (#:key outputs #:allow-other-keys)
@@ -630,27 +632,17 @@ of programming tools as well as libraries with equivalent
functionality.")
"0gyvfhnypfmlf7hdgkiz2wh2lgk4nz26aqf361msjs3qdkbh4djc"))
(define-public clang-13
- (let ((template
- (clang-from-llvm llvm-13 clang-runtime-13
-
"0zp1p6syii5iajm8v2c207s80arv00yz5ckfwimn5dng0sxiqqax"
- #:patches '("clang-13.0-libc-search-path.patch")
- #:tools-extra
- (origin
- (method url-fetch)
- (uri (llvm-uri "clang-tools-extra"
- (package-version llvm-13)))
- (sha256
- (base32
-
"1mgalgdgxlxi08yxw7k6yh4iia1bpjmjgn7mrpqas8lbl9h612s2"))))))
- (package
- (inherit template)
- (arguments
- (substitute-keyword-arguments (package-arguments template)
- ((#:phases phases '%standard-phases)
- `(modify-phases ,phases
- ;; This fails because the target to
- ;; lib/clang/13.0.0/share/cfi_blacklist.txt is not found.
- (delete 'validate-runpath))))))))
+ (clang-from-llvm llvm-13 clang-runtime-13
+ "0zp1p6syii5iajm8v2c207s80arv00yz5ckfwimn5dng0sxiqqax"
+ #:patches '("clang-13.0-libc-search-path.patch")
+ #:tools-extra
+ (origin
+ (method url-fetch)
+ (uri (llvm-uri "clang-tools-extra"
+ (package-version llvm-13)))
+ (sha256
+ (base32
+
"1mgalgdgxlxi08yxw7k6yh4iia1bpjmjgn7mrpqas8lbl9h612s2")))))
(define-public clang-toolchain-13
(make-clang-toolchain clang-13))
- branch master updated (1ea3f1d17a -> 1ee120a31b), guix-commits, 2022/01/08
- 02/10: gnu: lld: Update to 13.0.0., guix-commits, 2022/01/08
- 01/10: gnu: libunwind-headers: Update to 13.0.0., guix-commits, 2022/01/08
- 04/10: gnu: python-llvmlite: Remove unused patch., guix-commits, 2022/01/08
- 08/10: gnu: python-clang: Add 13., guix-commits, 2022/01/08
- 06/10: gnu: ungoogled-chromium: Build with Clang 13., guix-commits, 2022/01/08
- 10/10: gnu: emacs-clang-rename: Remove input labels., guix-commits, 2022/01/08
- 07/10: gnu: python-clang: Remove input labels., guix-commits, 2022/01/08
- 03/10: gnu: lldb: Simplify inputs., guix-commits, 2022/01/08
- 05/10: gnu: clang@13: Install CFI ignorelist.,
guix-commits <=
- 09/10: gnu: emacs-clang-format: Remove input labels., guix-commits, 2022/01/08