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>
Fri, 6 Mar 2020 09:16:51 +0000 (10:16 +0100)
commita6bf7a9745f39afca7412f6627d24dc42ebf8075
tree2f4250dbf7d23077a17a10972bd06aa1cb27cf75
parentfdae0fa50acfee57854f6978c3b300bc46aedc68
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