svn: r1698

original commit: c38876b84876d329151df7eb6941cce8d38eab27
This commit is contained in:
Matthew Flatt 2005-12-27 17:49:13 +00:00
parent d102f86461
commit 36320cca64

View File

@ -138,7 +138,12 @@
(lambda (out)
(with-handlers ((exn:fail?
(lambda (ex) (compilation-failure mode path zo-name #f (exn-message ex)))))
(write code out))
(parameterize ([current-write-relative-directory
(let-values ([(base name dir?) (split-path path)])
(if (eq? base 'relative)
(current-directory)
(path->complete-path base (current-directory))))])
(write code out)))
;; redundant, but close as early as possible:
(close-output-port out)
;; Note that we check time and write .deps before returning from with-compile-output...