guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

60/64: utils: Use target-arm64? and target-arm? helpers.


From: guix-commits
Subject: 60/64: utils: Use target-arm64? and target-arm? helpers.
Date: Fri, 23 Aug 2019 04:10:25 -0400 (EDT)

mothacehe pushed a commit to branch wip-cross-system
in repository guix.

commit ebe94d51aa40bf637fd771e2f544d254d12f52fe
Author: Mathieu Othacehe <address@hidden>
Date:   Tue Aug 20 17:45:50 2019 +0200

    utils: Use target-arm64? and target-arm? helpers.
    
    * 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 f480c32..3eb156a 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"))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]