gexp: 'computed-file' always uses a native Guile.
authorLudovic Courtès <ludo@gnu.org>
Tue, 15 Feb 2022 08:31:42 +0000 (09:31 +0100)
committerLudovic Courtès <ludo@gnu.org>
Tue, 15 Feb 2022 08:33:59 +0000 (09:33 +0100)
commit7f6dd3be3dceb0fda15fd02c9165614b2626813e
tree508ece49301b8c262b19ec8d1eff5fee45a70035
parent7d580f1c2c2dd4077101b66bbe7b46348c5af636
gexp: 'computed-file' always uses a native Guile.

Fixes a regression whereby, when cross-compiling, 'computed-file' would
use a cross-compiled Guile as its builder, which would fail to run.

Regression introduced in af57d1bf6c46f47d82dbc234dde1e16fa8634e9d (the
problem had always been there but was hidden before behind the (not guile)
condition.)

* guix/gexp.scm (computed-file-compiler): For 'guile', pass #:target #f.
* tests/gexp.scm ("lower-object, computed-file, #:target"): New test.
guix/gexp.scm
tests/gexp.scm