Browse Source

utils: Use target-aarch64? and target-arm? helpers.

* guix/utils.scm (target-aarch64?, target-arm?): New exported procedures.
wip-system-bootstrap
Mathieu Othacehe 2 years ago
parent
commit
74f1718081
No known key found for this signature in database GPG Key ID: 8354763531769CA6
  1. 8
      guix/utils.scm

8
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"))))

Loading…
Cancel
Save