From e4631751a4e435a2125b5d72f665f6ec0ef5d6e1 Mon Sep 17 00:00:00 2001 From: Vivien Kraus Date: Tue, 19 Jul 2022 20:05:45 +0200 Subject: [PATCH v2 2/3] guix: Add target-mips64el?. * guix/utils.scm (target-mips64el?): New function. It detects whether the target system is mips64el. --- guix/utils.scm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/guix/utils.scm b/guix/utils.scm index 329ef62dde..b4563e1a8f 100644 --- a/guix/utils.scm +++ b/guix/utils.scm @@ -101,6 +101,7 @@ (define-module (guix utils) target-ppc64le? target-powerpc? target-riscv64? + target-mips64el? target-64bit? ar-for-target cc-for-target @@ -732,6 +733,10 @@ (define* (target-riscv64? #:optional (target (or (%current-target-system) "Is the architecture of TARGET a 'riscv64' machine?" (string-prefix? "riscv64" target)) +(define* (target-mips64el? #:optional (target (or (%current-target-system) + (%current-system)))) + (string-prefix? "mips64el-" target)) + (define* (target-64bit? #:optional (system (or (%current-target-system) (%current-system)))) (any (cut string-prefix? <> system) '("x86_64" "aarch64" "mips64" -- 2.36.1