
This commit merges changes that were developed in the "racket7" repo. See that repo (which is no longer modified) for a more fine-grained change history. The commit includes experimental support for running Racket on Chez Scheme, but that "CS" variant is not built by default.
12 lines
234 B
Racket
12 lines
234 B
Racket
#lang racket/base
|
|
(require compiler/zo-marshal)
|
|
|
|
(provide write-module)
|
|
|
|
(define (write-module output-file bundle)
|
|
(call-with-output-file*
|
|
output-file
|
|
#:exists 'truncate/replace
|
|
(lambda (o)
|
|
(zo-marshal-to bundle o))))
|