[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#36477] [PATCH v3 43/48] utils: Use target-arm64? and target-arm? he
From: |
Mathieu Othacehe |
Subject: |
[bug#36477] [PATCH v3 43/48] utils: Use target-arm64? and target-arm? helpers. |
Date: |
Mon, 2 Sep 2019 17:33:28 +0200 |
* guix/utils.scm (target-arm64?, target-arm?): New exported procedures.
---
guix/utils.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/guix/utils.scm b/guix/utils.scm
index f480c3291f..3eb156ad4e 100644
--- a/guix/utils.scm
+++ b/guix/utils.scm
@@ -78,6 +78,8 @@
package-name->name+version
target-mingw?
target-arm32?
+ target-arm64?
+ target-arm?
target-64bit?
version-compare
version>?
@@ -493,6 +495,12 @@ a character other than '@'."
(define (target-arm32?)
(string-prefix? "arm" (or (%current-target-system) (%current-system))))
+(define (target-arm64?)
+ (string-prefix? "aarch64" (or (%current-target-system) (%current-system))))
+
+(define (target-arm?)
+ (or (target-arm32?) (target-arm64?)))
+
(define (target-64bit?)
(let ((system (or (%current-target-system) (%current-system))))
(any (cut string-prefix? <> system) '("x86_64" "aarch64" "mips64"
"ppc64"))))
--
2.20.1
- [bug#36477] [PATCH v3 26/48] gnu: guile-sqlite3: Fix cross-compilation., (continued)
- [bug#36477] [PATCH v3 26/48] gnu: guile-sqlite3: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 37/48] gnu: mdadm: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 38/48] gnu: grub: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 44/48] build: vm: Fix arm32 support., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 46/48] system: vm: Support cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 42/48] gexp: Pass target to compiled-modules in lower-gexp., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 43/48] utils: Use target-arm64? and target-arm? helpers.,
Mathieu Othacehe <=
- [bug#36477] [PATCH v3 40/48] gnu: linux-libre: Enable built-in ext4 support., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 27/48] gnu: guile-gcrypt: Fix cross-compilation., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 39/48] linux-initrd: Use native gzip., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 41/48] gexp: Use cross extensions when cross-compiling., Mathieu Othacehe, 2019/09/02
- [bug#36477] [PATCH v3 45/48] system: vm: Add arm64 support., Mathieu Othacehe, 2019/09/02