From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,91d0d8cd28bbb477 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!proxad.net!usenet-fr.net!gegeweb.org!news.ecp.fr!news.jacob-sparre.dk!pnx.dk!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: Implementing an Ada compiler and libraries. Date: Thu, 10 May 2007 21:57:37 +0200 Organization: Jacob's private Usenet server Message-ID: References: <1178721451.073700.10730@y80g2000hsf.googlegroups.com> <464239b2_4@news.bluewin.ch> <20070510173440.6b5954ac@cube.tz.axivion.com> <87wszgocrj.fsf@ludovic-brenta.org> <20070510184309.35ad5e95@cube.tz.axivion.com> <87odksoc8q.fsf@ludovic-brenta.org> <20070510190208.26683975@cube.tz.axivion.com> NNTP-Posting-Host: taasingegade.news.jacob-sparre.dk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: jacob-sparre.dk 1178827057 6013 85.82.239.166 (10 May 2007 19:57:37 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 10 May 2007 19:57:37 +0000 (UTC) User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:QEH+SPzumPegSdbGaindGRF8ick= Xref: g2news1.google.com comp.lang.ada:15737 Date: 2007-05-10T21:57:37+02:00 List-Id: Stefan Bellon writes: > Ludovic Brenta wrote: >> Stefan Bellon writes: >> > But timestamps are considered as well. If you touch a file >> > without modifying it otherwise, it triggers a recompilation. >> >> Not in my experience. Changing the timestamp causes a >> recalculation of the checksum, that's all. Even after adding >> whitespace or pretty-printing the file, there is no recompilation. > > Hmmmm: > > bellonsn@cube$ gnatmake foo.adb > gnatmake: "foo" up to date. > bellonsn@cube$ touch foo.adb > bellonsn@cube$ gnatmake foo.adb > gcc -c foo.adb > gnatbind -x foo.ali > gnatlink foo.ali I suspect that the difference in your experience is that Ludovic keeps the "-m" flag among his default flags for "gnatmake". Try: gnatmake -m foo.adb touch foo.adb gnatmake -m foo.adb Greetings, Jacob -- "There are two ways of constructing a software design. One way is to make it so simple that there are obviously no deficiencies. And the other way is to make it so complicated that there are no obvious deficiencies." -- C. A. R. Hoare