From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA18853; Sat, 22 Nov 2003 18:09:06 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA19360 for ; Sat, 22 Nov 2003 18:09:05 +0100 (MET) Received: from mail.davidb.org (adsl-64-172-240-129.dsl.sndg02.pacbell.net [64.172.240.129]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id hAMH93124024 for ; Sat, 22 Nov 2003 18:09:04 +0100 (MET) Received: from davidb by mail.davidb.org with local (Exim 3.36 #1 (Debian)) id 1ANbFc-0003xG-00; Sat, 22 Nov 2003 09:08:52 -0800 Date: Sat, 22 Nov 2003 09:08:52 -0800 From: David Brown To: skaller Cc: sylvain.le-gall@polytechnique.org, Nicolas Cannasse , David Brown , Martin Jambon , caml-list@inria.fr Subject: Re: [Caml-list] Building large and portable projects Message-ID: <20031122170852.GA15144@davidb.org> References: <20031120195614.GB441@gallu.homelinux.org> <000f01c3afd1$30033c90$0274a8c0@PWARP> <20031121052549.GA8599@davidb.org> <008301c3aff3$1030e760$0274a8c0@PWARP> <20031121064950.GA836@gallu.homelinux.org> <1069431167.5426.45.camel@pelican> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1069431167.5426.45.camel@pelican> User-Agent: Mutt/1.5.4i X-Loop: caml-list@inria.fr X-Spam: no; 0.00; caml-list:01 caml-list:01 1100,:01 hashes:01 ocamlc:01 ocamlopt:01 cached:01 nov:01 objects:02 dave:03 wrote:03 incorrect:04 compilation:04 anyway:05 annoyance:05 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk On Sat, Nov 22, 2003 at 03:12:48AM +1100, skaller wrote: > For example .c -cc--> .o -link--> exe, we can > use the cached .o instead of running cc on the > .c provided the .c is older. Older is incorrect, as well. The program should run cc on the .c provided that the .c is different than the one used to produce the .o. Timestamps are useful as a cache, but a proper tool will need to use file hashes, or something to properly detect a file changing. An unrelated annoyance I've found is that ocamlc doesn't allow for the objects to be stored in a separate directory from this source. This makes things, such as multiple configurations, multiple targets difficult. Since ocamlopt doesn't currently support cross compilation, anyway, this is less of an issue. Dave ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners