From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id mIf8AZ2ieWLQegEAbAwnHQ (envelope-from ) for ; Tue, 10 May 2022 01:24:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id MNr+AJ2ieWLzUwAAG6o9tA (envelope-from ) for ; Tue, 10 May 2022 01:24:13 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8F6E42EE82 for ; Tue, 10 May 2022 01:24:12 +0200 (CEST) Received: from localhost ([::1]:42602 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1noCjb-0005BP-Gj for larch@yhetil.org; Mon, 09 May 2022 19:24:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45494) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1noCjT-0005B6-LI for guix-patches@gnu.org; Mon, 09 May 2022 19:24:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37591) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1noCjT-0008Fd-D4 for guix-patches@gnu.org; Mon, 09 May 2022 19:24:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1noCjT-0003bF-6H for guix-patches@gnu.org; Mon, 09 May 2022 19:24:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#55343] [PATCH 1/2] utils: Define 'target-x86?' predicate. Resent-From: Denis 'GNUtoo' Carikli Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 09 May 2022 23:24:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 55343 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: To: 55343@debbugs.gnu.org Cc: Denis 'GNUtoo' Carikli Received: via spool by 55343-submit@debbugs.gnu.org id=B55343.165213860713777 (code B ref 55343); Mon, 09 May 2022 23:24:03 +0000 Received: (at 55343) by debbugs.gnu.org; 9 May 2022 23:23:27 +0000 Received: from localhost ([127.0.0.1]:59719 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noCit-0003a5-Iq for submit@debbugs.gnu.org; Mon, 09 May 2022 19:23:27 -0400 Received: from cyberdimension.org ([80.67.179.20]:35764 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1noCir-0003Zw-M7 for 55343@debbugs.gnu.org; Mon, 09 May 2022 19:23:26 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id d3da63cb; Mon, 9 May 2022 23:22:37 +0000 (UTC) Received: from primarylaptop.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 4abafe96; Mon, 9 May 2022 23:22:37 +0000 (UTC) From: Denis 'GNUtoo' Carikli Date: Tue, 10 May 2022 01:24:50 +0200 Message-Id: <20220509232451.30605-1-GNUtoo@cyberdimension.org> X-Mailer: git-send-email 2.36.0 In-Reply-To: <20220510011812.15710e0b@primarylaptop.localdomain> References: <20220510011812.15710e0b@primarylaptop.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1652138652; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=S/hfS54d2nytIVee7J9oVEjUq6xIjsy7TMcAplgJb3s=; b=Ja/RkprUTahYFnhRA5VyjPC/8Tm9cEG1DYRqkDQcRUVBrfNDiAh62WKvzJYJiEtw02TIwF I/eoUgNujMzcvcHvLEP80zZmCc8x+Z9pcJrj5J3veK738UsXo/Rduaak0SQHx3yjZfu6lF l8wlyRqOZ/h0W82ny7rnrr+JRkwFUnBSqSkHJ8Vha1AItGLQTuQ2b1pwAEUZ3AmQ7xyOMZ OjVWoSiXEf158iLn+di/T5rzR+0/D7QBENQPbl4phvUhylz7mjEHun5jKMD9CkhUkpR4h8 4t5mMoNm6H2cJ/0Bdrv/HJ51oEz54w/HQ0lm+EXwu3ATAte9eEgp3/wnEYquWQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1652138652; a=rsa-sha256; cv=none; b=pcf8Gzx6dLlhyfZwtT0MKgyN+oppnlXHcnY56FfPSkQuBiGZpRxkjSZbcjMkHgLqaAUAJw S7ei7O38EHxB6PW/ICK2npAxWRM8jTy1hI9JTnFUjq4X3eYsUTuDB3oCmE7qEyGkddzL9f XoSWTfeQiuG/sRKG4u4YB9hDL3oXjG10HQD+P82vfzQd/l/6oQDw9LR5sLSDEByLW71nba lMpy5FljlmLFPTcYcezYezAbVivsySI+kGd2BvE2Y+hxBrNwFgRrWRg1uM83ktrveVMFnL FM/3WpOVEMBui9brWoa5Nv4vrxbo68HSdI8LE3Inp1vGQ8pfxLTds4ja5ayY0g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.60 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 8F6E42EE82 X-Spam-Score: -2.60 X-Migadu-Scanner: scn0.migadu.com X-TUID: 3vKDzY8J8VDM * guix/utils.scm (target-x86?): New predicate. --- guix/utils.scm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/guix/utils.scm b/guix/utils.scm index 44c46cb4a9..a9d8819770 100644 --- a/guix/utils.scm +++ b/guix/utils.scm @@ -14,6 +14,7 @@ ;;; Copyright © 2021 Maxime Devos ;;; Copyright © 2018 Steve Sprang ;;; Copyright © 2021 Maxim Cournoyer +;;; Copyright © 2022 Denis 'GNUtoo' Carikli ;;; ;;; This file is part of GNU Guix. ;;; @@ -91,6 +92,7 @@ (define-module (guix utils) target-mingw? target-x86-32? target-x86-64? + target-x86? target-arm32? target-aarch64? target-arm? @@ -683,6 +685,10 @@ (define* (target-x86-64? #:optional (target (or (%current-target-system) architecture (x86_64)?" (string-prefix? "x86_64-" target)) +(define* (target-x86? #:optional (target (or (%current-target-system) + (%current-system)))) + (or (target-x86-32? target) (target-x86-64? target))) + (define* (target-arm32? #:optional (target (or (%current-target-system) (%current-system)))) (string-prefix? "arm" target)) base-commit: 37e44d48baf976f6bfcd885b2e10da4ab7be4af9 -- 2.36.0