mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-26 14:28:15 -05:00
gnu: clang-runtime: Adjust for CPLUS_INCLUDE_PATH changes.
* gnu/packages/llvm.scm (clang-runtime-from-llvm)[arguments]: Add #:modules and #:phases.
This commit is contained in:
parent
08cf730a7e
commit
3fd9c90c4a
1 changed files with 22 additions and 1 deletions
|
@ -164,7 +164,28 @@ (define* (clang-runtime-from-llvm llvm hash
|
|||
(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
|
||||
|
|
Loading…
Reference in a new issue