[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#43679] [PATCH v2 3/5] gnu: clang-toolchain: Create 'cc' and 'c++' s
From: |
Ludovic Courtès |
Subject: |
[bug#43679] [PATCH v2 3/5] gnu: clang-toolchain: Create 'cc' and 'c++' symlinks. |
Date: |
Fri, 9 Oct 2020 11:12:29 +0200 |
From: Ludovic Courtès <ludovic.courtes@inria.fr>
* gnu/packages/llvm.scm (make-clang-toolchain)[arguments]: Create 'cc'
and 'c++' symlinks.
---
gnu/packages/llvm.scm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gnu/packages/llvm.scm b/gnu/packages/llvm.scm
index 4b42c4921a..361b39710b 100644
--- a/gnu/packages/llvm.scm
+++ b/gnu/packages/llvm.scm
@@ -476,6 +476,12 @@ code analysis tools.")
(((names . directories) ...)
(union-build out directories)))
+ ;; Create 'cc' and 'c++' so that one can use it as a
+ ;; drop-in replacement for the default tool chain and
+ ;; have configure scripts find the compiler.
+ (symlink "clang" (string-append out "/bin/cc"))
+ (symlink "clang++" (string-append out "/bin/c++"))
+
(union-build (assoc-ref %outputs "debug")
(list (assoc-ref %build-inputs
"libc-debug")))
--
2.28.0
- [bug#43679] [PATCH v2 0/5] Add '--with-c-toolchain', Ludovic Courtès, 2020/10/09
- [bug#43679] [PATCH v2 1/5] gnu: gcc-toolchain: Add 'GUIX_LOCPATH' to the search paths., Ludovic Courtès, 2020/10/09
- [bug#43679] [PATCH v2 2/5] gnu: clang-toolchain: Add 'GUIX_LOCPATH' to the search paths., Ludovic Courtès, 2020/10/09
- [bug#43679] [PATCH v2 3/5] gnu: clang-toolchain: Create 'cc' and 'c++' symlinks.,
Ludovic Courtès <=
- [bug#43679] [PATCH v2 4/5] packages: Add 'package-with-c-toolchain'., Ludovic Courtès, 2020/10/09
- [bug#43679] [PATCH v2 5/5] guix build: Add '--with-c-toolchain'., Ludovic Courtès, 2020/10/09
- bug#43679: [PATCH v2 0/5] Add '--with-c-toolchain', Ludovic Courtès, 2020/10/12