~ruther/guix-local

5a88b2d1304ad57c1249558a261a8d191daf9758 — Taylan Ulrich Bayırlı/Kammer 9 years ago cfb7e26
build: Improve Guile 2.2 compatibility.

* build-aux/compile-all.scm (compile-file*): Ensure loading of
  compilation related modules before going parallel.
* guix/build/pull.scm (build-guix): Ditto.
2 files changed, 6 insertions(+), 0 deletions(-)

M build-aux/compile-all.scm
M guix/build/pull.scm
M build-aux/compile-all.scm => build-aux/compile-all.scm +3 -0
@@ 81,6 81,9 @@
   (let ((files (filter file-needs-compilation? files)))
     (for-each load-module-file files)
     (let ((mutex (make-mutex)))
       ;; Make sure compilation related modules are loaded before starting to
       ;; compile files in parallel.
       (compile #f)
       (par-for-each (lambda (file)
                       (compile-file* file mutex))
                     files)))))

M guix/build/pull.scm => guix/build/pull.scm +3 -0
@@ 125,6 125,9 @@ containing the source code.  Write any debugging output to DEBUG-PORT."
      (newline)
      (let ((mutex (make-mutex))
            (completed 0))
        ;; Make sure compilation related modules are loaded before starting to
        ;; compile files in parallel.
        (compile #f)
        (par-for-each
         (lambda (file)
           (with-mutex mutex