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,FREEMAIL_FROM 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!news2.google.com!news1.google.com!news.glorb.com!news-in.ntli.net!newsrout1-win.ntli.net!ntli.net!news.highwinds-media.com!xara.net!gxn.net!194.159.246.34.MISMATCH!peer-uk.news.demon.net!kibo.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Implementing an Ada compiler and libraries. Date: Thu, 10 May 2007 21:31:28 +0100 Organization: Pushface 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: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1178829088 26079 62.49.19.209 (10 May 2007 20:31:28 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Thu, 10 May 2007 20:31:28 +0000 (UTC) Cancel-Lock: sha1:EI/Zow9h3SYeHIfISwfhNlZfWUc= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.95 (darwin) Xref: g2news1.google.com comp.lang.ada:15739 Date: 2007-05-10T21:31:28+01: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 This is the gnatmake -m flag: if the timestamp hasn't changed: do nothing elif the semantic content of the file hasn't changed: do nothing else: recompile