aboutsummaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorMathieu Othacehe <m.othacehe@gmail.com>2017-11-29 15:10:12 +0100
committerMathieu Othacehe <m.othacehe@gmail.com>2017-12-01 13:55:45 +0100
commite45b573c2d4f251d57caccb01ff19078b4f2e8e7 (patch)
tree863d32905522a199adc35b6f66ca9ed4cc690f2c /guix
parentf1de0e37d579dc7834be0c9e80654e9f2067c3ed (diff)
downloadgnu-guix-e45b573c2d4f251d57caccb01ff19078b4f2e8e7.tar
gnu-guix-e45b573c2d4f251d57caccb01ff19078b4f2e8e7.tar.gz
utils: Add target-arm32? procedure.
* guix/utils.scm (target-arm32?): New exported procedure.
Diffstat (limited to 'guix')
-rw-r--r--guix/utils.scm5
1 files changed, 5 insertions, 0 deletions
diff --git a/guix/utils.scm b/guix/utils.scm
index c0ffed172a..fed31f4ca4 100644
--- a/guix/utils.scm
+++ b/guix/utils.scm
@@ -6,6 +6,7 @@
;;; Copyright © 2016 Mathieu Lirzin <mthl@gnu.org>
;;; Copyright © 2015 David Thompson <davet@gnu.org>
;;; Copyright © 2017 Efraim Flashner <efraim@flashner.co.il>
+;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -75,6 +76,7 @@
%current-target-system
package-name->name+version
target-mingw?
+ target-arm32?
version-compare
version>?
version>=?
@@ -467,6 +469,9 @@ a character other than '@'."
(and target
(string-suffix? "-mingw32" target)))
+(define (target-arm32?)
+ (string-prefix? "arm" (or (%current-target-system) (%current-system))))
+
(define version-compare
(let ((strverscmp
(let ((sym (or (dynamic-func "strverscmp" (dynamic-link))