Article View: borland.public.delphi.commandlinetools
Article #289Re: using dcc32 on a .pas file does not checktimestamp?
From: Hrvoje Brozovic
Date: Fri, 18 Feb 2005 19:38
Date: Fri, 18 Feb 2005 19:38
32 lines
2282 bytes
2282 bytes
"Mark Elder" wrote in message > Hello, > > I have some library files that I am trying to build in an automated > build process. These files do not generate and exe but are instead used > by other projects. I was trying to avoid using a package and just > reference the dcu files. My build process is building the library > components first and then each project. > > When dcc32 is passed a .pas file it seem to always compile that file > even if the dcu has a timestamp that does not need to be updated. The > /M switch does not seem to have any affect on this behavior. > > Right now I am creating a dummy pas file that has all the other files > listed in its uses clause. It looks like the timestamp is checked for > any dependencies. Just not for the file name passed to dcc32. > What you are experiencing is proper behaviour. By dcc32 MyUnit.pas you asking for compilation of "pascal project" MyUnit, so compiler does it, opens ypu "pascal project", sees it is actualy an unit, so it compiles that unit, taking into account timestams of pas and dcu files of other units, used by yours. Existance of MyUnit.dcu don't mean anything to it, since in case your pas file is an program, and not unit, result of its compilation would be an EXE, not DCU. So, to see what it is all about, it must open pas file, since there is no other way to know is it unit or program.
Technical Details
Message-ID:
<421643b1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<421504db$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: ff8f1,639350cc3ab9f1b3 X-Google-Attributes: gidff8f1,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Hrvoje Brozovic" <a.b@c.de> Newsgroups: borland.public.delphi.commandlinetools References: <421504db$1@newsgroups.borland.com> Subject: Re: using dcc32 on a .pas file does not checktimestamp? Date: Fri, 18 Feb 2005 20:38:39 +0100 Lines: 34 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 193.198.129.220 Message-ID: <421643b1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1108755377 193.198.129.220 (18 Feb 2005 11:36:17 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail