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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: GNAT corrupted builds with below second changes Date: Sun, 22 Apr 2018 16:04:11 +0200 Organization: Adalog Message-ID: References: NNTP-Posting-Host: XdjV4tYMtFfMKGpv0MuDzQ.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 X-Notice: Filtered by postfilter v. 0.8.3 Openpgp: preference=signencrypt Content-Language: fr Xref: reader02.eternal-september.org comp.lang.ada:51669 Date: 2018-04-22T16:04:11+02:00 List-Id: Le 22/04/2018 à 09:31, Simon Wright a écrit : > "Alejandro R. Mosteo" writes: > >> I've observed that gprbuild seems to not detect that a file is changed >> if less than a second has elapsed. I will guess here that the >> timestamp being used has second precision. > > Looking at a .ali file, the dependencies are recorded in lines like > > D ada.ads 20170106103348 76789da1 ada%s > > where 20170106103348 is the date/time to 1 second precision, and > 76789da1 is a checksum of the file's contents. I'd imagine that gprbuild > looks at the timestamp first; not sure about the checksum, but certainly > needed for -m processing (only recompile if semantically modified). > Yes, it's a checksum that ignores casing, comments, blank lines, indentation and the like. -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr