On 12-04-08 18:02 , Svante Signell wrote:
On Thu, 2012-04-05 at 12:24 -0400, Stephen Leake wrote:
Svante Signell<[email protected]> writes:
Looks like if there is an .adb file present, the corresponding .ads
file is not compiled.
Depends on what you mean by "compiled".
.ads files are read by the compiler. No separate .o file is produced.
Yes, I see this now. Changing a .ads file does not trigger a recompile,
but changing the corresponding .adb file, the recompile encounters the
changes made also in the .ads file (similiar to a header file in C)
Similar in a way, but also quite different in that the compiler knows
about the dependencies between .ads and .adb files (and also between
different .ads files).
Changing an .ads file (in a significant way) should certainly trigger
recompilation of those .adb files that depend on the changed .ads file.
However, the Gnat compiler has some (optional) intelligence that can
avoid recompilation when a file is changed in an inessential way, for
example just in the comments.
--
Niklas Holsti
Tidorum Ltd
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]
Archive: http://lists.debian.org/[email protected]