From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.user Subject: Re: Generating compiled scm (.go) files as part of LilyPond build Date: Sun, 28 Nov 2010 12:01:50 +0000 Message-ID: <87lj4d1u4j.fsf@ossau.uklinux.net> References: <4CF14302.1020502@hulin.org.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1290949298 15065 80.91.229.12 (28 Nov 2010 13:01:38 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 28 Nov 2010 13:01:38 +0000 (UTC) Cc: "Andy Wingo \(Guile Developer\)" , guile-user@gnu.org, Han-Wen Nienhuys To: Ian Hulin Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Sun Nov 28 14:01:33 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 1PMgsm-0002Gs-NV for guile-user@m.gmane.org; Sun, 28 Nov 2010 14:01:32 +0100 Original-Received: from localhost ([127.0.0.1]:37344 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PMgsm-0006lI-0M for guile-user@m.gmane.org; Sun, 28 Nov 2010 08:01:32 -0500 Original-Received: from [140.186.70.92] (port=44002 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PMgrc-0006NO-OG for guile-user@gnu.org; Sun, 28 Nov 2010 08:00:21 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PMgrb-0003iD-2S for guile-user@gnu.org; Sun, 28 Nov 2010 08:00:20 -0500 Original-Received: from mail3.uklinux.net ([80.84.72.33]:34575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PMgra-0003Yv-Rd for guile-user@gnu.org; Sun, 28 Nov 2010 08:00:19 -0500 Original-Received: from arudy (unknown [78.149.126.128]) by mail3.uklinux.net (Postfix) with ESMTP id A12241F6B3C; Sun, 28 Nov 2010 12:59:45 +0000 (GMT) Original-Received: from neil-laptop (unknown [192.168.11.7]) by arudy (Postfix) with ESMTP id CD98B3800B; Sun, 28 Nov 2010 12:59:41 +0000 (GMT) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 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:8244 Archived-At: Ian Hulin writes: > OK, here's the question: if we decide not to rely on AUTOCOMPILE, and > we are able generate our own .go files in, say, /out/scm, > how do we get guile to use the compiled version > /out/scm/.go in preference to a possibly > non-existent .scm.go file in the cache? There are some hints of > configure/type variables LOAD_PATH and COMPILED_LOAD_PATH in NEWS, and I > hoped that there might me a %compiled-load-path run-time equivalent to > COMPILED_LOAD_PATH just like %load-path corresponds to LOAD_PATH, but it > doesn't exist as at V1.9.13. If there was, we could possibly prefix > /out/scm to the %compiled-load-path in the same way we > fiddle with %load-path for the interpreter. Of course, I'm open to any > more elegant solutions. >From some code grepping, I think the answer is to use (primitive-load-path ...), and that the path for compiled files needs to be put in %load-compiled-path. Would you like to try that? If this turns out to be correct, I'll update the doc for primitive-load-path to cover it - so please report back. Regards, Neil