summaryrefslogtreecommitdiff
path: root/module/ice-9/eval-string.scm
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2013-10-31 14:17:30 +0100
committerAndy Wingo <wingo@pobox.com>2013-10-31 14:17:30 +0100
commitb73a2ee01773d910d82074a818c3955b45a6e6e1 (patch)
tree32c45887a5de512f43ea810fe31b016983cc7fb2 /module/ice-9/eval-string.scm
parent30b7cf9df0f51bc2a3553396dc368c197eab4d8d (diff)
downloadguile-b73a2ee01773d910d82074a818c3955b45a6e6e1.tar.gz
Default to compiling to RTL
* module/ice-9/eval-string.scm (eval-string) * module/language/tree-il/spec.scm (tree-il) * module/scripts/compile.scm (compile) * module/system/base/compile.scm (compile-file, read-and-compile) * module/system/repl/common.scm (repl-compile, repl-prepare-eval-thunk): Default to compiling to RTL. * module/language/rtl/spec.scm (rtl->value): Add value compiler.
Diffstat (limited to 'module/ice-9/eval-string.scm')
-rw-r--r--module/ice-9/eval-string.scm4
1 files changed, 3 insertions, 1 deletions
diff --git a/module/ice-9/eval-string.scm b/module/ice-9/eval-string.scm
index 649551d9f..ae6792e67 100644
--- a/module/ice-9/eval-string.scm
+++ b/module/ice-9/eval-string.scm
@@ -22,6 +22,7 @@
#:use-module (system base compile)
#:use-module (system base language)
#:use-module (system vm program)
+ #:use-module (system vm objcode)
#:replace (eval-string))
(define (ensure-language x)
@@ -84,5 +85,6 @@
(set-port-column! port line))
(if (or compile? (not (language-evaluator lang)))
- ((make-program (read-and-compile port #:from lang #:to 'objcode)))
+ ((load-thunk-from-memory
+ (read-and-compile port #:from lang #:to 'rtl)))
(read-and-eval port #:lang lang))))))))