repair cm handling of extensions

svn: r10045
This commit is contained in:
Matthew Flatt 2008-05-30 16:08:28 +00:00
parent 20a9a3e0b3
commit cbb7db6a2c

View File

@ -141,8 +141,12 @@
(cons (path->bytes p) (cons (path->bytes p)
external-deps))))) external-deps)))))
d)))]) d)))])
(get-module-code path mode #:source-reader read-src-syntax))] (get-module-code path mode
compile
(lambda (a b) #f) ; extension handler
#:source-reader read-src-syntax))]
[code-dir (get-code-dir mode path)]) [code-dir (get-code-dir mode path)])
(when code
(when (not (directory-exists? code-dir)) (when (not (directory-exists? code-dir))
(make-directory* code-dir)) (make-directory* code-dir))
(with-compile-output (with-compile-output
@ -176,7 +180,7 @@
(if (> ss-sec (current-seconds)) (if (> ss-sec (current-seconds))
", which appears to be in the future" ", which appears to be in the future"
"")))) ""))))
(write-deps code mode path external-deps)))))]))) (write-deps code mode path external-deps))))))])))
(trace-printf "end compile: ~a" path)) (trace-printf "end compile: ~a" path))
(define (format-date date) (define (format-date date)