compile: Fix VPATH builds.
authorLudovic Courtès <ludo@gnu.org>
Sun, 5 Nov 2017 11:49:57 +0000 (12:49 +0100)
committerLudovic Courtès <ludo@gnu.org>
Mon, 6 Nov 2017 23:12:10 +0000 (00:12 +0100)
commitc9405c461b1b37740bc0bb33c7043313978c0014
tree273724dfab6ce89748c7ddb459f1d36b709f2c1e
parent0ad5f8098292a3ed759b249acd48dc7107086c12
compile: Fix VPATH builds.

Fixes <https://bugs.gnu.org/29091>.
Reported by Eric Bavier <bavier@cray.com>.

* guix/build/compile.scm (relative-file): New procedure.
(load-files): Use it before calling 'file-name->module-name'.
(compile-files): Likewise before calling 'scm->go'.
* guix/build/pull.scm (build-guix): Remove 'with-directory-excursion'
and file name hack from ce33c3af76b0e5c68cc42dddf2b9c4b017386fd8.
Pass OUT to 'all-scheme-files'.
guix/build/compile.scm
guix/build/pull.scm