Skip to content

Commit

Permalink
std/build-script: use with-cons-load-path during deps generation
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo committed Nov 14, 2019
1 parent 1030644 commit 8b147fd
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/std/build-script.ss
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@
(["spec"]
(pretty-print build-spec))
(["deps"]
(cons-load-path @srcdir)
(let (build-deps (make-depgraph/spec @build-spec))
(call-with-output-file "build-deps" (cut write build-deps <>))))
(with-cons-load-path
(lambda ()
(let (build-deps (make-depgraph/spec @build-spec))
(call-with-output-file "build-deps" (cut write build-deps <>))))
@srcdir))
(["compile"]
(let (depgraph (call-with-input-file "build-deps" read))
(make srcdir: @srcdir
Expand Down

0 comments on commit 8b147fd

Please sign in to comment.