From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Hulin Newsgroups: gmane.lisp.guile.user Subject: Re: Generating compiled scm (.go) files as part of LilyPond build Date: Wed, 01 Dec 2010 21:21:21 +0000 Message-ID: <4CF6BC51.3090909@hulin.org.uk> References: <4CF14302.1020502@hulin.org.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1291238564 28938 80.91.229.12 (1 Dec 2010 21:22:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 1 Dec 2010 21:22:44 +0000 (UTC) Cc: guile-user@gnu.org, Han-Wen Nienhuys To: Andy Wingo Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Wed Dec 01 22:22:40 2010 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PNu8N-0001ID-AR for guile-user@m.gmane.org; Wed, 01 Dec 2010 22:22:39 +0100 Original-Received: from localhost ([127.0.0.1]:59203 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNu8M-0007yX-Dj for guile-user@m.gmane.org; Wed, 01 Dec 2010 16:22:38 -0500 Original-Received: from [140.186.70.92] (port=38920 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNu7q-0005wI-Eb for guile-user@gnu.org; Wed, 01 Dec 2010 16:22:32 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNu7I-0005fw-F1 for guile-user@gnu.org; Wed, 01 Dec 2010 16:22:05 -0500 Original-Received: from asmtp4.iomartmail.com ([62.128.201.175]:56579) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNu7I-0005dv-7i for guile-user@gnu.org; Wed, 01 Dec 2010 16:21:32 -0500 Original-Received: from asmtp4.iomartmail.com (localhost.localdomain [127.0.0.1]) by asmtp4.iomartmail.com (8.13.8/8.13.8) with ESMTP id oB1LLQZs013689; Wed, 1 Dec 2010 21:21:27 GMT Original-Received: from [192.168.1.100] (cpc3-rdng6-0-0-cust547.15-3.cable.virginmedia.com [82.10.50.36]) (authenticated bits=0) by asmtp4.iomartmail.com (8.13.8/8.13.8) with ESMTP id oB1LLLHH013677; Wed, 1 Dec 2010 21:21:25 GMT User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b3pre Thunderbird/3.1.6 In-Reply-To: X-Enigmail-Version: 1.1.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:8266 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Andy, On 29/11/10 21:17, Andy Wingo wrote: > On Sat 27 Nov 2010 18:42, Ian Hulin writes: > >> Our long-term aim, when we are able to move to using Guile V2.0 as an >> infrastructure, is to byte-compile as many of these as possible during >> the Lily build using something like. >> $ guile-tool compile >> --output-file=<.go file> > > Ralf has promised to add Guile 2.0 support to automake, so this should > be partly automated. > >> At the moment, during Lily initialization we prefix the guile path >> %load-path with /scm as this is where we keep all the >> LilyPond-specific scm files. > > There is also $GUILE_LOAD_COMPILED_PATH in 2.0, which you can set to the > proper path in your $builddir... which, ummm, doesn't appear to be > documented. Sorry about that. Want to patch our docs? :) It doesn't appear to work using 1.9.13: (PWD is /home/ian/lilypond) ian@greebo$ echo $GUILE_LOAD_COMPILED_PATH/home/ian/lilypond/scm/out ian@greebo$ ls $GUILE_LOAD_COMPILED_PATH dummy.dep ian@greebo$ guile-tools compile scm/lily-library.scm wrote `/home/ian/.cache/guile/ccache/2.0-0.S-LE-4/home/ian/lilypond/scm/lily-library.scm.go' ian@greebo$ Cheers, Ian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJM9rxEAAoJEBqidDirZqASGEMIAJnbJDLwp/Gv/ORrEnyB+rSp aG/Wa1UC6nrjcAPH2tJ8+410RGMHEDp5YWagSP37JEKBqH6sjJTpZ4cXbUaUyJCO +Fktd04uL2yr48wZzi71fjUXJOjNSe0WtJ4DqokbJ75jESj1nNLmKkTr+OJhPBvU Z18NejAWWT8Tsob8nIJfyPnfQQ7tB55aUsbjvF3VvcNCAJ59i/CS8JZ0dCHZPueW ARHbzL8raLCLBk1/A9kNUpCy8Gl5pjOkBWe4WS2QJwY6ObWyAwLUrUPeW3U4sXYB TB67DzKfNQTth7+xiB5+gQNHNLaQVSbjpaGy2Vlv9eL7p648p2OXSFULgGrKhZk= =NNrA -----END PGP SIGNATURE-----