From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:470:142:3::10]:48224) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i5USE-0001mQ-4G for guix-patches@gnu.org; Wed, 04 Sep 2019 08:32:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i5USC-0005Z9-Sc for guix-patches@gnu.org; Wed, 04 Sep 2019 08:32:06 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:52147) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i5USC-0005Z4-OL for guix-patches@gnu.org; Wed, 04 Sep 2019 08:32:04 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i5USC-0004ox-JV for guix-patches@gnu.org; Wed, 04 Sep 2019 08:32:04 -0400 Subject: [bug#36477] [PATCH v3 42/48] gexp: Pass target to compiled-modules in lower-gexp. Resent-Message-ID: From: Ludovic =?UTF-8?Q?Court=C3=A8s?= References: <20190902153333.11190-1-m.othacehe@gmail.com> <20190902153333.11190-43-m.othacehe@gmail.com> Date: Wed, 04 Sep 2019 14:31:19 +0200 In-Reply-To: <20190902153333.11190-43-m.othacehe@gmail.com> (Mathieu Othacehe's message of "Mon, 2 Sep 2019 17:33:27 +0200") Message-ID: <8736hc5jl4.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: Mathieu Othacehe Cc: 36477@debbugs.gnu.org Hi, Mathieu Othacehe skribis: > * guix/gexp.scm (lower-gexp): Pass target argument to compiled-modules. This seems obvious at first sight, but actually, I=E2=80=99m not sure it=E2= =80=99s correct because Guile code always runs =E2=80=9Cnatively=E2=80=9D. That is= , when you write: (computed-file "foo" (with-imported-modules =E2=80=A6 #~(begin =E2=80=A6)= )) the gexp here necessarily runs =E2=80=9Cnatively=E2=80=9D on the current sy= stem. Thus, the modules have to be compiled natively. The cross-compilation target should only affect things that the regex refers to with =E2=80=98ungexp=E2=80=99 or =E2=80=98ungexp-splicing=E2=80= =99. WDYT? Ludo=E2=80=99.