summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Le Vaillant <glv@posteo.net>2021-10-15 11:12:52 +0200
committerGuillaume Le Vaillant <glv@posteo.net>2021-10-15 11:16:59 +0200
commit90e92befbc8379b90ef58e4bbde975ba5a99d88c (patch)
tree8ca756ed6f5bd3bf06f86fae0faa6e7b07565364
parente9bd9a2d58001283e4be51bd6f67accb4c211c2e (diff)
downloadguix-90e92befbc8379b90ef58e4bbde975ba5a99d88c.tar.gz
gnu: janet: Prepare for cross-compilation.
* gnu/packages/lisp.scm (janet)[arguments]: Use 'cc-for-target'. Replace
  custom 'check' phase by 'test-target' parameter.
-rw-r--r--gnu/packages/lisp.scm9
1 files changed, 3 insertions, 6 deletions
diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm
index f81e55faaf..6e1b9c0244 100644
--- a/gnu/packages/lisp.scm
+++ b/gnu/packages/lisp.scm
@@ -1172,14 +1172,11 @@ including a built-in database engine and a GUI system.")
        (list
          (string-append "DESTDIR=" (assoc-ref %outputs "out"))
          (string-append "PREFIX=")
-         (string-append "CC=" (assoc-ref %build-inputs "gcc")
-                        "/bin/gcc"))
+         (string-append "CC=" ,(cc-for-target)))
+       #:test-target "test"
        #:phases
        (modify-phases %standard-phases
-         (delete 'configure)
-         (replace 'check
-           (lambda _
-             (invoke "make" "test"))))))
+         (delete 'configure))))
     (home-page "https://janet-lang.org/")
     (synopsis "Functional, imperative and embeddable programming language")
     (description