mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-25 22:08:16 -05:00
gnu: clang: Fix C++ search path handling on non-x86_64.
* gnu/packages/llvm.scm (clang-from-llvm)[arguments]: Add phase 'add-missing-triplets'.
This commit is contained in:
parent
5cfc6a88e9
commit
f5cc5de8b6
1 changed files with 18 additions and 0 deletions
|
@ -208,6 +208,24 @@ (define* (clang-from-llvm llvm clang-runtime hash
|
||||||
#:build-type "Release"
|
#:build-type "Release"
|
||||||
|
|
||||||
#:phases (modify-phases %standard-phases
|
#:phases (modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'add-missing-triplets
|
||||||
|
(lambda _
|
||||||
|
;; Clang iterates through known triplets to search for
|
||||||
|
;; GCC's headers, but does not recognize some of the
|
||||||
|
;; triplets that are used in Guix.
|
||||||
|
(substitute* ,@(if (version>=? version "6.0")
|
||||||
|
'("lib/Driver/ToolChains/Gnu.cpp")
|
||||||
|
'("lib/Driver/ToolChains.cpp"))
|
||||||
|
(("\"aarch64-linux-gnu\"," all)
|
||||||
|
(string-append "\"aarch64-unknown-linux-gnu\", "
|
||||||
|
all))
|
||||||
|
(("\"arm-linux-gnueabihf\"," all)
|
||||||
|
(string-append all
|
||||||
|
" \"arm-unknown-linux-gnueabihf\","))
|
||||||
|
(("\"i686-pc-linux-gnu\"," all)
|
||||||
|
(string-append "\"i686-unknown-linux-gnu\", "
|
||||||
|
all)))
|
||||||
|
#t))
|
||||||
(add-after
|
(add-after
|
||||||
'unpack 'set-glibc-file-names
|
'unpack 'set-glibc-file-names
|
||||||
(lambda* (#:key inputs #:allow-other-keys)
|
(lambda* (#:key inputs #:allow-other-keys)
|
||||||
|
|
Loading…
Reference in a new issue