[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
04/19: gnu: clang-runtime: Adjust for CPLUS_INCLUDE_PATH changes.
From: |
guix-commits |
Subject: |
04/19: gnu: clang-runtime: Adjust for CPLUS_INCLUDE_PATH changes. |
Date: |
Thu, 5 Mar 2020 18:10:17 -0500 (EST) |
mbakke pushed a commit to branch core-updates
in repository guix.
commit 3fd9c90c4ae79ff1e9a0dbe840c3ff10d099d7ca
Author: Marius Bakke <address@hidden>
AuthorDate: Thu Mar 5 17:22:17 2020 +0100
gnu: clang-runtime: Adjust for CPLUS_INCLUDE_PATH changes.
* gnu/packages/llvm.scm (clang-runtime-from-llvm)[arguments]: Add #:modules
and #:phases.
---
gnu/packages/llvm.scm | 23 ++++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index bf32322..659631e 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -164,7 +164,28 @@ of programming tools as well as libraries with equivalent
functionality.")
(arguments
`(;; Don't use '-g' during the build to save space.
#:build-type "Release"
- #:tests? #f)) ; Tests require gtest
+ #:tests? #f ; Tests require gtest
+ #:modules ((srfi srfi-1)
+ (ice-9 match)
+ ,@%cmake-build-system-modules)
+ #:phases (modify-phases (@ (guix build cmake-build-system)
%standard-phases)
+ (add-after 'set-paths 'hide-glibc
+ ;; Work around https://issues.guix.info/issue/36882. We
need to
+ ;; remove glibc from CPLUS_INCLUDE_PATH so that the one
hardcoded
+ ;; in GCC, at the bottom of GCC include search-path is
used.
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let* ((filters '("libc"))
+ (input-directories
+ (filter-map (lambda (input)
+ (match input
+ ((name . dir)
+ (and (not (member name filters))
+ dir))))
+ inputs)))
+ (set-path-environment-variable "CPLUS_INCLUDE_PATH"
+ '("include")
+ input-directories)
+ #t))))))
(home-page "https://compiler-rt.llvm.org")
(synopsis "Runtime library for Clang/LLVM")
(description
- 02/19: gnu: librsvg: Incorporate grafted changes., (continued)
- 02/19: gnu: librsvg: Incorporate grafted changes., guix-commits, 2020/03/05
- 03/19: gnu: qemu-minimal: Fix build., guix-commits, 2020/03/05
- 01/19: gnu: zziplib: Incorporate grafted changes., guix-commits, 2020/03/05
- 06/19: gnu: Python: Update to 3.8.2., guix-commits, 2020/03/05
- 07/19: gnu: glib: Update to 2.62.5., guix-commits, 2020/03/05
- 08/19: gnu: meson: Update to 0.53.2., guix-commits, 2020/03/05
- 10/19: gnu: cURL: Update to 7.69.0., guix-commits, 2020/03/05
- 05/19: gnu: clang-runtime: Fix build with glibc 2.31., guix-commits, 2020/03/05
- 13/19: gnu: texlive-bin: Fix build with Poppler 0.86., guix-commits, 2020/03/05
- 14/19: gnu: coreutils: Update to 8.32., guix-commits, 2020/03/05
- 04/19: gnu: clang-runtime: Adjust for CPLUS_INCLUDE_PATH changes.,
guix-commits <=
- 09/19: gnu: fribidi: Update to 1.0.9., guix-commits, 2020/03/05
- 11/19: gnu: OpenBLAS: Update to 0.3.9., guix-commits, 2020/03/05
- 12/19: gnu: Poppler: Update to 0.86.1., guix-commits, 2020/03/05
- 15/19: gnu: bzip2: Do not retain a reference to the bootstrap bzip., guix-commits, 2020/03/05
- 16/19: gnu: ed: Update to 1.16., guix-commits, 2020/03/05
- 17/19: gnu: ld-wrapper: Add support for quoted arguments in response files., guix-commits, 2020/03/05
- 19/19: gnu: CMake: Update to 3.16.5., guix-commits, 2020/03/05
- 18/19: gnu: Remove ld-wrapper-next., guix-commits, 2020/03/05