mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-27 13:09:23 -05:00
utils: Add target-arm32? procedure.
* guix/utils.scm (target-arm32?): New exported procedure.
This commit is contained in:
parent
f1de0e37d5
commit
e45b573c2d
1 changed files with 5 additions and 0 deletions
|
@ -6,6 +6,7 @@
|
||||||
;;; Copyright © 2016 Mathieu Lirzin <mthl@gnu.org>
|
;;; Copyright © 2016 Mathieu Lirzin <mthl@gnu.org>
|
||||||
;;; Copyright © 2015 David Thompson <davet@gnu.org>
|
;;; Copyright © 2015 David Thompson <davet@gnu.org>
|
||||||
;;; Copyright © 2017 Efraim Flashner <efraim@flashner.co.il>
|
;;; Copyright © 2017 Efraim Flashner <efraim@flashner.co.il>
|
||||||
|
;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -75,6 +76,7 @@ (define-module (guix utils)
|
||||||
%current-target-system
|
%current-target-system
|
||||||
package-name->name+version
|
package-name->name+version
|
||||||
target-mingw?
|
target-mingw?
|
||||||
|
target-arm32?
|
||||||
version-compare
|
version-compare
|
||||||
version>?
|
version>?
|
||||||
version>=?
|
version>=?
|
||||||
|
@ -467,6 +469,9 @@ (define* (target-mingw? #:optional (target (%current-target-system)))
|
||||||
(and target
|
(and target
|
||||||
(string-suffix? "-mingw32" target)))
|
(string-suffix? "-mingw32" target)))
|
||||||
|
|
||||||
|
(define (target-arm32?)
|
||||||
|
(string-prefix? "arm" (or (%current-target-system) (%current-system))))
|
||||||
|
|
||||||
(define version-compare
|
(define version-compare
|
||||||
(let ((strverscmp
|
(let ((strverscmp
|
||||||
(let ((sym (or (dynamic-func "strverscmp" (dynamic-link))
|
(let ((sym (or (dynamic-func "strverscmp" (dynamic-link))
|
||||||
|
|
Loading…
Reference in a new issue