[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/41: utils: Define 'target-riscv?' predicate.
From: |
guix-commits |
Subject: |
01/41: utils: Define 'target-riscv?' predicate. |
Date: |
Thu, 9 Sep 2021 08:39:28 -0400 (EDT) |
efraim pushed a commit to branch wip-riscv
in repository guix.
commit 17b94f45fa732347f926e19ae581f093438f349f
Author: Efraim Flashner <efraim@flashner.co.il>
AuthorDate: Sun Aug 1 11:01:41 2021 +0300
utils: Define 'target-riscv?' predicate.
* guix/utils.scm (target-riscv?): New predicate.
---
guix/utils.scm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/guix/utils.scm b/guix/utils.scm
index 3f253d6..5b4e0d9 100644
--- a/guix/utils.scm
+++ b/guix/utils.scm
@@ -97,6 +97,7 @@
target-ppc32?
target-ppc64le?
target-powerpc?
+ target-riscv?
target-64bit?
cc-for-target
cxx-for-target
@@ -704,6 +705,11 @@ architecture (x86_64)?"
(%current-system))))
(string-prefix? "powerpc" target))
+(define* (target-riscv? #:optional (target (or (%current-target-system)
+ (%current-system))))
+ "Is the architecture of TARGET a 'riscv' architecture variant?"
+ (string-prefix? "riscv" target))
+
(define* (target-64bit? #:optional (system (or (%current-target-system)
(%current-system))))
(any (cut string-prefix? <> system) '("x86_64" "aarch64" "mips64"
"powerpc64")))
- branch wip-riscv created (now bca71a8), guix-commits, 2021/09/09
- 01/41: utils: Define 'target-riscv?' predicate.,
guix-commits <=
- 04/41: gnu: %boot3-inputs: Add missing input., guix-commits, 2021/09/09
- 08/41: gnu: elfutils: Fix building on riscv64-linux., guix-commits, 2021/09/09
- 09/41: gnu: pcre: Fix building on riscv64-linux., guix-commits, 2021/09/09
- 11/41: gnu: libtool: Fix test suite on riscv64-linux., guix-commits, 2021/09/09
- 02/41: gnu: bootstrap: Add support for riscv64-linux., guix-commits, 2021/09/09
- 03/41: gnu: gcc-boot0: Use libstdc++-boot0-gcc7 on riscv64-linux., guix-commits, 2021/09/09
- 06/41: gnu: %final-inputs: Add implied gcc:lib input., guix-commits, 2021/09/09
- 21/41: gnu: texlive-latex-base: Skip JIT formats on riscv64-linux., guix-commits, 2021/09/09
- 13/41: gnu: mesa: Add support for riscv64-linux., guix-commits, 2021/09/09
- 17/41: gnu: openlibm: Remove riscv64-linux from supported systems., guix-commits, 2021/09/09