Subject: Re: [bug#36477] [PATCH v3 42/48] gexp: Pass target to compiled-modules in lower-gexp.

From: Ludovic Courtès <[email-masked]>
Date: Wed, 04 Sep 2019 14:31:19 +0200

Hi,

Mathieu Othacehe <[email-masked]> skribis:

> * guix/gexp.scm (lower-gexp): Pass target argument to compiled-modules.

This seems obvious at first sight, but actually, I’m not sure it’s
correct because Guile code always runs “natively”.  That is, when you
write:

  (computed-file "foo" (with-imported-modules … #~(begin …)))

the gexp here necessarily runs “natively” on the current system.  Thus,
the modules have to be compiled natively.

The cross-compilation target should only affect things that the regex
refers to with ‘ungexp’ or ‘ungexp-splicing’.

WDYT?

Ludo’.