comiler/compile-file: adapt to use-compiled-file-paths
setting
This commit is contained in:
parent
33e8ee7786
commit
aa6ec1f0cd
|
@ -7,7 +7,10 @@
|
|||
(define compile-file
|
||||
(case-lambda
|
||||
[(src)
|
||||
(define cdir (build-path (path-only src) "compiled"))
|
||||
(define cdir (build-path (path-only src) (let ([l (use-compiled-file-paths)])
|
||||
(if (pair? l)
|
||||
(car l)
|
||||
"compiled"))))
|
||||
(make-directory* cdir)
|
||||
(compile-file src (build-path cdir (path-add-suffix (file-name-from-path src) #".zo")))]
|
||||
[(src dest)
|
||||
|
|
Loading…
Reference in New Issue
Block a user