racket/collects/tests/mzscheme/benchmarks/common/mk-bigloo.ss
Matthew Flatt 2c8ab78953 use bigloo -call/cc when needed
svn: r4168
2006-08-28 08:23:00 +00:00

23 lines
694 B
Scheme

(require (lib "process.ss"))
(define name (vector-ref (current-command-line-arguments) 0))
(with-output-to-file (format "~a.scm" name)
(lambda ()
(write `(module fft
(include "bigloo-prelude.sch")
(include ,(format "~a.sch" name))))
(newline))
'truncate/replace)
(when (system (format "bigloo -w -o ~a -copt -O3 -copt -fomit-frame-pointer -O6 ~a~a.scm"
name
(if (memq (string->symbol name)
'(ctak))
"-call/cc "
"")
name))
(delete-file (format "~a.scm" name))
(delete-file (format "~a.o" name)))