raco exe: fix --collects-dest for non-default "compiled"

This commit is contained in:
Matthew Flatt 2019-01-25 12:36:55 -07:00
parent a80952e05f
commit 7bc0364ec7
2 changed files with 7 additions and 3 deletions

View File

@ -750,8 +750,9 @@
(try-basic)
(try-mzc)
(unless (eq? 'windows (system-type))
(try-extension))
(when (eq? 'racket (system-type 'vm))
(unless (eq? 'windows (system-type))
(try-extension)))
(try-gracket)
(try-reader)
(try-lang)

View File

@ -405,7 +405,10 @@
(extract-last (unix-style-split s)))])
(let ([p (build-path collects-dest
(apply build-path dir)
"compiled"
(let ([l (use-compiled-file-paths)])
(if (pair? l)
(car l)
"compiled"))
(path-add-extension file #".zo"))])
(let-values ([(base name dir?) (split-path p)])
(make-directory* base)