dmd -c behaviour doesn't take account of packages.
Jonathan M Davis
jmdavisProg at gmx.com
Thu Feb 23 03:20:30 PST 2012
On Thursday, February 23, 2012 12:06:54 Jacob Carlborg wrote:
> On 2012-02-22 23:05, Jonathan M Davis wrote:
> > If you're going to worry about modules when generating object files, then
> > you really should be putting the object files in the same directory
> > layout as the modules have. But that sort of thing is arguably a build
> > tool's job, not the compiler.
> No I don't think so. If the compiler generate object file names based on
> the fully qualified module name it will be A LOT easier to implement a
> build tool that can do incremental builds. I don't see any advantage of
> putting the object files in sub directories.
Because then it nicely matches the layout of the source code. It's certainly
the typical thing to do with many projects in other languages. It also keeps
the object files separate from the source files, which makes for cleaner
directories, fewer issues with source control, easier cleaning of builds, etc.
(at least in comparison to putting them in the same directories as the source,
which some folks do).
- Jonathan M Davis
More information about the Digitalmars-d