comiler/compile-file: adapt to use-compiled-file-paths setting

This commit is contained in:
Matthew Flatt 2018-10-22 17:14:49 -06:00
parent 33e8ee7786
commit aa6ec1f0cd

View File

@ -7,7 +7,10 @@
(define compile-file (define compile-file
(case-lambda (case-lambda
[(src) [(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) (make-directory* cdir)
(compile-file src (build-path cdir (path-add-suffix (file-name-from-path src) #".zo")))] (compile-file src (build-path cdir (path-add-suffix (file-name-from-path src) #".zo")))]
[(src dest) [(src dest)