gexp: Default to current target.
authorMathieu Othacehe <m.othacehe@gmail.com>
Fri, 6 Mar 2020 09:06:54 +0000 (10:06 +0100)
committerMathieu Othacehe <m.othacehe@gmail.com>
Sun, 8 Mar 2020 19:28:31 +0000 (20:28 +0100)
commit9a2f99f42fdd19ac379ac85be2a8c2a34a345aa5
tree7453d86ffe9231b7b6937b80cd38684155d35f8b
parent5d52d10661635ece0db9ffb89ab57f5f937221aa
gexp: Default to current target.

* guix/gexp.scm (lower-object): Set target argument to 'current by default and
look for the current target system at bind time if needed,
(gexp->file): ditto,
(gexp->script): ditto,
(lower-gexp): make sure lowered extensions are not cross-compiled.

* tests/gexp.scm: Add cross-compilation test-cases for gexp->script and
gexp->file with a target passed explicitely and with a default target.
guix/gexp.scm
tests/gexp.scm