[Issue 13517] Only touch .di generated file if changed

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Sep 22 12:54:59 PDT 2014


https://issues.dlang.org/show_bug.cgi?id=13517

Steven Schveighoffer <schveiguy at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy at yahoo.com

--- Comment #15 from Steven Schveighoffer <schveiguy at yahoo.com> ---
(In reply to Vladimir Panteleev from comment #3)
> (In reply to Ketmar Dark from comment #1)
> > but why compiler should do that? it's a build tool task. the build tool
> > should know that .di file is generated from .d and invoke generator only if
> > .di file is missing or older than .d.
> 
> That idea only applies if you want to do .di generation as a separate
> compiler invocation from compilation.

I was about to argue against Andrei's position, but this makes sense -- the .di
has no dependencies in the build tool, nor does it know how to build the .di
file. It's just a side effect of building the .o

The only caveat is that you can't have the same project that generates the .di
files (as a side effect) depend on the .di files in any way. Given the purpose
of .di files, that seems reasonable.

--


More information about the Digitalmars-d-bugs mailing list