[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#68202] [PATCH 2/5] gnu: Add target-x32?.
From: |
Efraim Flashner |
Subject: |
[bug#68202] [PATCH 2/5] gnu: Add target-x32?. |
Date: |
Tue, 2 Jan 2024 09:27:33 +0200 |
* guix/utils.scm (target-x32?): New procedure.
Change-Id: Ia16c7edce64de01d5ccb126c7bd9a6736f327b5f
---
guix/utils.scm | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/guix/utils.scm b/guix/utils.scm
index f4bf965e9a..e4e9d922e7 100644
--- a/guix/utils.scm
+++ b/guix/utils.scm
@@ -97,6 +97,7 @@ (define-module (guix utils)
target-x86-32?
target-x86-64?
target-x86?
+ target-x32?
target-arm32?
target-aarch64?
target-arm?
@@ -712,6 +713,13 @@ (define* (target-x86-64? #:optional (target (or
(%current-target-system)
architecture (x86_64)?"
(string-prefix? "x86_64-" target))
+(define* (target-x32? #:optional (target (or (%current-target-system)
+ (%current-system))))
+ "Is the architecture of TARGET a variant of Intel/AMD's 64-bit
+architecture (x86_64) using 32-bit data types?"
+ (and (target-x86-64? target)
+ (string-suffix? "gnux32" target)))
+
(define* (target-x86? #:optional (target (or (%current-target-system)
(%current-system))))
(or (target-x86-32? target) (target-x86-64? target)))
--
Efraim Flashner <efraim@flashner.co.il> רנשלפ םירפא
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
- [bug#68202] [PATCH 0/5] Add support for x86_64-linux-gnux32, Efraim Flashner, 2024/01/02
- [bug#68202] [PATCH 3/5] gnu: openssl: Fix building on x86_64-linux-gnux32., Efraim Flashner, 2024/01/02
- [bug#68202] [PATCH 4/5] gnu: gmp: Fix building on x86_64-linux-gnux32., Efraim Flashner, 2024/01/02
- [bug#68202] [PATCH 5/5] gnu: libsigsegv: Fix building for x86_64-linux-gnux32., Efraim Flashner, 2024/01/02
- [bug#68202] [PATCH 2/5] gnu: Add target-x32?.,
Efraim Flashner <=
- [bug#68202] [PATCH 1/5] gnu: Add support for x86_64-linux-gnux32., Efraim Flashner, 2024/01/02
- bug#68202: [PATCH 0/5] Add support for x86_64-linux-gnux32, Efraim Flashner, 2024/01/05
- [bug#68202] [PATCH 0/5] Add support for x86_64-linux-gnux32, Ludovic Courtès, 2024/01/08