X-Git-Url: http://git.hcoop.net/bpt/guile.git/blobdiff_plain/5dfafc3c76b70acfdb7d47611478d1f9a737ac18..856d318a9f543d8a61fcf61caae7d07102586802:/module/scripts/compile.scm diff --git a/module/scripts/compile.scm b/module/scripts/compile.scm index 76a253129..5b644c3d4 100644 --- a/module/scripts/compile.scm +++ b/module/scripts/compile.scm @@ -1,6 +1,6 @@ ;;; Compile --- Command-line Guile Scheme compiler -*- coding: iso-8859-1 -*- -;; Copyright 2005,2008,2009,2010,2011,2013 Free Software Foundation, Inc. +;; Copyright 2005, 2008-2011, 2013, 2014 Free Software Foundation, Inc. ;; ;; This program is free software; you can redistribute it and/or ;; modify it under the terms of the GNU Lesser General Public License @@ -139,7 +139,7 @@ There is NO WARRANTY, to the extent permitted by law.~%")) (cons #:O o) o))) (from (or (assoc-ref options 'from) 'scheme)) - (to (or (assoc-ref options 'to) 'rtl)) + (to (or (assoc-ref options 'to) 'bytecode)) (target (or (assoc-ref options 'target) %host-type)) (input-files (assoc-ref options 'input-files)) (output-file (assoc-ref options 'output-file)) @@ -158,7 +158,7 @@ Compile each Guile source file FILE into a Guile object. for a list of available warnings -f, --from=LANG specify a source language other than `scheme' - -t, --to=LANG specify a target language other than `rtl' + -t, --to=LANG specify a target language other than `bytecode' -T, --target=TRIPLET produce bytecode for host TRIPLET Note that auto-compilation will be turned off. @@ -176,6 +176,14 @@ Report bugs to <~A>.~%" (fail "`-o' option can only be specified " "when compiling a single file")) + ;; Install a SIGINT handler. As a side effect, this gives unwind + ;; handlers an opportunity to run upon SIGINT; this includes that of + ;; 'call-with-output-file/atomic', called by 'compile-file', which + ;; removes the temporary output file. + (sigaction SIGINT + (lambda args + (fail "interrupted by the user"))) + (for-each (lambda (file) (format #t "wrote `~A'\n" (with-fluids ((*current-warning-prefix* ""))