Received: (at submit) by debbugs.gnu.org; 28 Jan 2021 22:04:04 +0000 From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 28 17:04:04 2021 Received: from localhost ([127.0.0.1]:50479 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>) id 1l5FOV-0005xB-V9 for submit <at> debbugs.gnu.org; Thu, 28 Jan 2021 17:04:04 -0500 Received: from lists.gnu.org ([209.51.188.17]:44960) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <jsoo1@HIDDEN>) id 1l5FOT-0005wm-Il for submit <at> debbugs.gnu.org; Thu, 28 Jan 2021 17:04:02 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <jsoo1@HIDDEN>) id 1l5FOT-00031B-D0 for guix-patches@HIDDEN; Thu, 28 Jan 2021 17:04:01 -0500 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]:53458) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <jsoo1@HIDDEN>) id 1l5FOR-0004no-Pg for guix-patches@HIDDEN; Thu, 28 Jan 2021 17:04:01 -0500 Received: by mail-pj1-x1034.google.com with SMTP id p15so4675079pjv.3 for <guix-patches@HIDDEN>; Thu, 28 Jan 2021 14:03:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=asu-edu.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:mime-version; bh=RP6NdKegF5LSy4a3bxqMB3sVEDGtaqf+F5cOtA4JXVY=; b=j4JlEf96IylEXjlp5GUoBk/NKzb7gtunv5ocgyHN3ZEQCltVZtYMCNrt731F9xY7gR zt3rMLaX8zASigt67rtOvSN0yj9HsXTCi4m/gWDNEHz6b4tHFACbgU9OWLP0CzZIIfOk p8CmrtW2Papcae+ZNveUPfHFtSqFlOay1BT3BV4aMn+6q/mB7/QNumIlCx1IOYYy/V1K nZolt/lkA1RUTGY/dt7mkY02miAiqocKMysCK+mXsXSNOiCI/BM6B6zVBq0SroaQJcFC U/fB/t1ycNWAY7Qc7/oSevRCZQKck4uV5nbJZXbhz0duPLvZs5zobJUu783g42Q8e7i8 DElg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=RP6NdKegF5LSy4a3bxqMB3sVEDGtaqf+F5cOtA4JXVY=; b=ml+xqYfUeqBJwzcwQokLj0lzRvbrlBDJsqhfleLkwkVNGE4F/v8x0hDU8kMNtMy6IT 8qzFLtMGeKNr/UGAKIGGI5GIK9wFdjS2HDVlgbClYfKrzkun3amWPvtKkAMhmZ3EQmqi GDyfoyFjUFCq4iEiJlTkiuU0FSMW8rXIFJPHCUm6rcfcWKL2ZcpRs8m1sbzOyCOnuO3B IPeAoy8PQxgMpqhwuS1um2/ie9Po7imJY2afA8WMFnt9JqrX8Vbtvu5lZCtrwU+lbBi9 Xd5aLPyDoST+TgoPpFx+0xrT+qPGLMKo3nbjynqfe9lcqiYFVK6M7LRtFRvRVAWAYeJw Yo2A== X-Gm-Message-State: AOAM531+UX6lj/cIHXAn09ZMAopOXpV+D+5R5zQZ1aITOj6FhoGz9smM jx0u5cH7PSYpBJ79h06DX1C3nnhV11Ostg== X-Google-Smtp-Source: ABdhPJwb50D/IoSZ8xSOLFzYU9nebFE8KYh9GZ/05BEVwP59IU1c9gp9dLNqaqrZReBVZItFE9L+6A== X-Received: by 2002:a17:90a:df0c:: with SMTP id gp12mr1420041pjb.3.1611871438155; Thu, 28 Jan 2021 14:03:58 -0800 (PST) Received: from ecenter ([2600:1700:83b0:8bd0::7a8]) by smtp.gmail.com with ESMTPSA id e63sm6676678pfe.216.2021.01.28.14.03.57 for <guix-patches@HIDDEN> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Jan 2021 14:03:57 -0800 (PST) From: John Soo <jsoo1@HIDDEN> To: guix-patches@HIDDEN Subject: [PATCH] staging gnu: Add wasm32 target to rustc. Date: Thu, 28 Jan 2021 14:03:56 -0800 Message-ID: <87bld8k9bn.fsf@HIDDEN> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=jsoo1@HIDDEN; helo=mail-pj1-x1034.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit <at> debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: <debbugs-submit.debbugs.gnu.org> List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe> List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/> List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org> List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help> List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe> Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org> X-Spam-Score: -2.3 (--) --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Hi Guix! Recently I had to work with some webassembly and rust and our current compiler did not support the target. This patch adds wasm32 support. Kindly, John --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-Add-wasm32-target-to-rust-1.46.patch Content-Transfer-Encoding: quoted-printable From=20ab40dbfd2db1a06939c353d7cb0cb64841dbaa35 Mon Sep 17 00:00:00 2001 From: John Soo <jsoo1@HIDDEN> Date: Sat, 23 Jan 2021 08:43:52 -0800 Subject: [PATCH] gnu: Add wasm32 target to rust@HIDDEN * gnu/packages/rust.scm (rust-1.46): [arguments] Add wasm32 to target configuration, [native-inputs] Add node for tests. =2D-- gnu/packages/rust.scm | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index 98ae770745..7b40372cb2 100644 =2D-- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -1349,7 +1349,21 @@ move around." (generate-all-checksums "vendor") #t)) (replace 'build =2D (lambda* _ + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "config.toml" + (("\\[build\\]" all) + (string-append all " +target =3D [\"" ,(nix-system->gnu-triplet-for-rust) "\", \"wasm32-unknown-= unknown\"] +")) + (("\\[dist\\]" all) + (string-append " +[target.wasm32-unknown-unknown] +llvm-config =3D \"" (assoc-ref inputs "llvm") "/bin/llvm-config\" +cc =3D \"" (assoc-ref inputs "gcc") "/bin/gcc\" +cxx =3D \"" (assoc-ref inputs "gcc") "/bin/g++\" +ar =3D \"" (assoc-ref inputs "binutils") "/bin/ar\" +" +all))) (invoke "./x.py" "build") (invoke "./x.py" "build" "src/tools/cargo") (invoke "./x.py" "build" "src/tools/rustfmt") @@ -1364,7 +1378,9 @@ move around." (string-append "-j" (number->string (min 4 (parallel-job-count)))))) =2D (invoke "./x.py" parallel-job-spec "test" "-vv") + (invoke "./x.py" parallel-job-spec "test" + (string-append "--target=3D" ,(nix-system->gnu-= triplet-for-rust)) + "-vv") (invoke "./x.py" parallel-job-spec "test" "src/tools/cargo") (invoke "./x.py" parallel-job-spec "test" =2D-=20 2.30.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJCBAEBCAAsFiEEWhWPr0BqdIqBqdxOT0N6drRIojsFAmATNMwOHGpzb28xQGFz dS5lZHUACgkQT0N6drRIojsVHA//fBuXoEe8/4vTa8URvnxxe4QIFh7s1QNFOTU8 DKWIBzsRdY/TKnnt0VpPeJoVIjLXkQdSyLjiEmcag9aO/nLsjeD12Z5Tv3X+OoEH H+nDY6u/ERfTAmsW1XFT7az9PGD+DeRWX4nKSYr+beuWlL+1Snn9KEZy3CcRPy0u Lh+lgFdDyGfl28W/Z7LaJMbrsUJBgKbh0EqoUdyqJFAmpUL4kb7GXOfquGIvILvp vLmRO5CVuMpWe/08DrRRtwSnCo5dnUKVA7Nvhwlqg83iP9hvSDbBhLH9tj28qCnM KUrH8l1FhmsR2LiKtICM3G18xi8bFykNZgJmTLDMXs3YpB0/aqqTxfV/zikyESRi jfewA0RlfefIuxdSgYaUZEs35E4VOpkmUciyQqzjczUkI+en5AvqTTUpHN2h0ITO nxpS4izA4MQWJDWGyC0dQGGmS6sLxc+OW2VODg7Kmio6fP3+Gm2Re07HM0mrZoz5 Nr7v/hdR/dw5oEeRp/Rh7VDSTO/boGz4gegdlA+XJi1oL5ljVZV48PwvekARSzmR 3gPeYc5ZpBBdxd5Pc2sVN48tR2ycKVgeXZFmam9ALXvwV94RMZMzlz5v/ekUBVnD bEG7XQ3xx6iPEXqtxmyqUt7gCB/MxKSXuzPaxapH6CWlKhZP6JLDjx30WXrMrLBG 1NaM70M= =5UTx -----END PGP SIGNATURE----- --==-=-=--
John Soo <jsoo1@HIDDEN>
:guix-patches@HIDDEN
.
Full text available.guix-patches@HIDDEN
:bug#46163
; Package guix-patches
.
Full text available.
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997 nCipher Corporation Ltd,
1994-97 Ian Jackson.