;;; Compile --- Command-line Guile Scheme compiler -*- coding: iso-8859-1 -*- ;; Copyright 2005,2008-2011,2013-2015,2017-2020,2024 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 ;; as published by the Free Software Foundation; either version 3, or ;; (at your option) any later version. ;; ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ;; Lesser General Public License for more details. ;; ;; You should have received a copy of the GNU Lesser General Public ;; License along with this software; see the file COPYING.LESSER. If ;; not, write to the Free Software Foundation, Inc., 51 Franklin ;; Street, Fifth Floor, Boston, MA 02110-1301 USA ;;; Author: Ludovic Courtès ;;; Author: Andy Wingo ;;; Commentary: ;; Usage: compile [ARGS] ;; ;; A command-line interface to the Guile compiler. ;;; Code: (define-module (scripts compile) #:use-module ((system base compile) #:select (compute-compiler compile-file default-warning-level default-optimization-level)) #:use-module (system base target) #:use-module (system base message) #:use-module (system base optimize) #:use-module (srfi srfi-1) #:use-module (srfi srfi-13) #:use-module (srfi srfi-37) #:use-module (ice-9 format) #:use-module (ice-9 match) #:export (compile)) (define %summary "Compile a file.")