[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#36477] [PATCH v4 19/23] utils: Use target-aarch64? and target-arm?
From: |
Mathieu Othacehe |
Subject: |
[bug#36477] [PATCH v4 19/23] utils: Use target-aarch64? and target-arm? helpers. |
Date: |
Wed, 2 Oct 2019 11:59:00 +0200 |
* guix/utils.scm (target-aarch64?, 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 1f99c5b3f5..c9236ad165 100644
--- a/guix/utils.scm
+++ b/guix/utils.scm
@@ -78,6 +78,8 @@
package-name->name+version
target-mingw?
target-arm32?
+ target-aarch64?
+ target-arm?
target-64bit?
version-compare
version>?
@@ -494,6 +496,12 @@ a character other than '@'."
(define (target-arm32?)
(string-prefix? "arm" (or (%current-target-system) (%current-system))))
+(define (target-aarch64?)
+ (string-prefix? "aarch64" (or (%current-target-system) (%current-system))))
+
+(define (target-arm?)
+ (or (target-arm32?) (target-aarch64?)))
+
(define (target-64bit?)
(let ((system (or (%current-target-system) (%current-system))))
(any (cut string-prefix? <> system) '("x86_64" "aarch64" "mips64"
"ppc64"))))
--
2.23.0
- [bug#36477] [PATCH v4 09/23] gnu: openldap: Fix cross-compilation., (continued)
- [bug#36477] [PATCH v4 17/23] gnu: cmake: Fix cross-compilation., Mathieu Othacehe, 2019/10/02
- [bug#36477] [PATCH v4 14/23] gnu: guile-sqlite3: Fix cross-compilation., Mathieu Othacehe, 2019/10/02
- [bug#36477] [PATCH v4 19/23] utils: Use target-aarch64? and target-arm? helpers.,
Mathieu Othacehe <=
- [bug#36477] [PATCH v4 12/23] gnu: doxygen: Fix cross-compilation., Mathieu Othacehe, 2019/10/02
- [bug#36477] [PATCH v4 20/23] build: vm: Fix arm32 support., Mathieu Othacehe, 2019/10/02
- [bug#36477] [PATCH v4 21/23] system: vm: Add arm64 support., Mathieu Othacehe, 2019/10/02
- [bug#36477] [PATCH v4 15/23] gnu: libnl: Move python outputs to separate packages., Mathieu Othacehe, 2019/10/02
- [bug#36477] [PATCH v4 22/23] system: vm: Support cross-compilation., Mathieu Othacehe, 2019/10/02
- [bug#36477] [PATCH v4 23/23] scripts: system: Add --target option., Mathieu Othacehe, 2019/10/02
- [bug#36477] [PATCH v4 00/23] System cross-compilation, Mathieu Othacehe, 2019/10/18