summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYelninei <yelninei@tutamail.com>2025-10-24 14:52:13 +0000
committerLudovic Courtès <ludo@gnu.org>2025-11-03 17:18:38 +0100
commit2b2a87f38b58aa1c5f7b5dd398f9241dcec18ff1 (patch)
tree74900cfea9dbe2736193be259584757c84cddaff
parent9319d612cbf15f37e1e9a6398c9cbc1ca976a74c (diff)
utils: Define 'target-hurd32?' predicate.
* guix/utils.scm (target-hurd32?): New predicate. Change-Id: I19e5b2d4e76b1c5b8c233c21397b48daf9619239 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
-rw-r--r--guix/utils.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/guix/utils.scm b/guix/utils.scm
index 446627311a4..9870b480f1d 100644
--- a/guix/utils.scm
+++ b/guix/utils.scm
@@ -95,6 +95,7 @@
target-linux?
target-hurd?
system-hurd?
+ target-hurd32?
target-hurd64?
system-hurd64?
host-hurd?
@@ -744,6 +745,12 @@ a character other than '@'."
"Is the current system the GNU(/Hurd) system?"
(and=> (%current-system) target-hurd?))
+(define* (target-hurd32? #:optional (target (or (%current-target-system)
+ (%current-system))))
+ "Does TARGET represent the 32bit GNU(/Hurd) system?"
+ (and (target-hurd? target)
+ (not (target-64bit? target))))
+
(define* (target-hurd64? #:optional (target (or (%current-target-system)
(%current-system))))
"Does TARGET represent the 64bit GNU(/Hurd) system?"