[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
06/13: gnu: clang: Fix C++ search path handling on non-x86_64.
From: |
guix-commits |
Subject: |
06/13: gnu: clang: Fix C++ search path handling on non-x86_64. |
Date: |
Wed, 26 Feb 2020 15:57:38 -0500 (EST) |
mbakke pushed a commit to branch master
in repository guix.
commit f5cc5de8b6c542295b08c108d9a6f1ca52cdc37a
Author: Marius Bakke <address@hidden>
AuthorDate: Wed Feb 26 20:59:09 2020 +0100
gnu: clang: Fix C++ search path handling on non-x86_64.
* gnu/packages/llvm.scm (clang-from-llvm)[arguments]: Add phase
'add-missing-triplets'.
---
gnu/packages/llvm.scm | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 38f2118..4a1a123 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -208,6 +208,24 @@ compiler. In LLVM this library is called
\"compiler-rt\".")
#:build-type "Release"
#: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
'unpack 'set-glibc-file-names
(lambda* (#:key inputs #:allow-other-keys)
- branch master updated (b68f5a6 -> e524b57), guix-commits, 2020/02/26
- 01/13: gnu: pocl: Build with LLVM@9., guix-commits, 2020/02/26
- 02/13: gnu: LibUV: Add version 1.34.2., guix-commits, 2020/02/26
- 03/13: gnu: nghttp2: Add version 1.40.0., guix-commits, 2020/02/26
- 06/13: gnu: clang: Fix C++ search path handling on non-x86_64.,
guix-commits <=
- 04/13: gnu: node: Update to 10.19.0., guix-commits, 2020/02/26
- 05/13: gnu: node: Disable failing tests on armhf-linux., guix-commits, 2020/02/26
- 08/13: gnu: emacs-elixir-mode: Fix capitalization in description., guix-commits, 2020/02/26
- 10/13: gnu: benchmark: Add bonnie++., guix-commits, 2020/02/26
- 07/13: gnu: clang: Move version conditionals out of the builder., guix-commits, 2020/02/26
- 11/13: gnu: musl: Update to 1.2.0., guix-commits, 2020/02/26
- 12/13: gnu: vim-full: Describe differences from vim., guix-commits, 2020/02/26
- 09/13: gnu: emacs-eacl: Fix typo in description., guix-commits, 2020/02/26
- 13/13: gnu: awscli: Update to 1.18.6., guix-commits, 2020/02/26