1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 19:50:24 +02:00

compile-file adds #:to-disk? #t to opts

* module/system/base/compile.scm (compile-file): Pass #:to-disk? as an
  option to indicate that the result will be being loaded from disk.
  Perhaps a linker might want to page-align in that case.

* module/language/elisp/compile-tree-il.scm (process-options!): Accept
  and ignore the #:to-file compiler option.
This commit is contained in:
Andy Wingo 2013-08-20 22:06:46 +02:00
parent 84cc4127bd
commit 72bb47ae4c
2 changed files with 3 additions and 2 deletions

View file

@ -792,7 +792,7 @@
(let ((key (car opt)) (let ((key (car opt))
(value (cadr opt))) (value (cadr opt)))
(case key (case key
((#:warnings) ; ignore ((#:warnings #:to-file?) ; ignore
#f) #f)
(else (report-error #f (else (report-error #f
"Invalid compiler option" "Invalid compiler option"

View file

@ -150,7 +150,8 @@
(call-with-output-file/atomic comp (call-with-output-file/atomic comp
(lambda (port) (lambda (port)
((language-printer (ensure-language to)) ((language-printer (ensure-language to))
(read-and-compile in #:env env #:from from #:to to #:opts opts) (read-and-compile in #:env env #:from from #:to to #:opts
(cons* #:to-file? #t opts))
port)) port))
file) file)
comp))) comp)))