https://issues.dlang.org/show_bug.cgi?id=13517
Steven Schveighoffer <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #15 from Steven Schveighoffer <[email protected]> --- (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. --
